Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

Adding shortcode in custom template


  #1  
Old May 20, 2009, 08:13 AM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
I want to use MM Forms to make various feedback forms for my site. I have a custom template for a category called Career Doctor, and a form for users to ask questions about career problems. I can't just pop the shortcode for the form into a post, because I want it to be in a certain place on every post, hence the custom template.

If I just paste the shortcode into the template at the right spot, it simply shows up "en clair" when published. I found a website which explains how to put it into PHP code in the template, and I tried it:
Code:
<?php echo do_shortcode('[form 3 "Career Doctor"]'); ?>
, but it stills shows up on the page as [form 3 "Career Doctor"] . What am I doing wrong?
  #2  
Old May 21, 2009, 05:20 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Do you have PHP code for the plugin, too? Short codes are meant to be used within the_content = within content that is processed by Wordpress

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I enter shortcode? LemBook Sidebars & Widgets 8 May 17, 2009 07:40 PM
Quick question regarding shortcode/snippet in header chirop Plugins & Atahualpa 0 Mar 24, 2009 12:16 PM
Creating custom post template paulae Atahualpa 3 Wordpress theme 3 Mar 18, 2009 11:36 AM
Adding custom pages to menu FH4U Page & Category Menu Bars 2 Feb 9, 2009 03:31 PM
New Template Page Axon Atahualpa 3 Wordpress theme 1 Feb 8, 2009 02:34 PM


All times are GMT -6. The time now is 10:56 PM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.