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"]'); ?> |
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 02:59 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.