Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   Adding shortcode in custom template (http://forum.bytesforall.com/showthread.php?t=1726)

paulae May 20, 2009 07:13 AM

Adding shortcode in custom template
 
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?

Flynn May 21, 2009 04:20 PM

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


All times are GMT -6. The time now is 05:52 PM.

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