Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Adding shortcode in custom template


  #1  
Old May 20, 2009, 07: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, 04: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 06:40 PM
Quick question regarding shortcode/snippet in header chirop Plugins & Atahualpa 0 Mar 24, 2009 11:16 AM
Creating custom post template paulae Atahualpa 3 Wordpress theme 3 Mar 18, 2009 10:36 AM
Adding custom pages to menu FH4U Page & Category Menu Bars 2 Feb 9, 2009 02:31 PM
New Template Page Axon Atahualpa 3 Wordpress theme 1 Feb 8, 2009 01:34 PM


All times are GMT -6. The time now is 06:23 AM.


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