LeRoy LeRoy - 1 month ago 9
CSS Question

Wordpress How To Call Shortcode Within a template

there's a plugin for Contact us form[http://wordpress.org/plugins/contact-us-form/]

to activate the form all you have to do is to place

[CONTACT-US-FORM]
in the page...................
Question
My page is calling a page Template.
Is it possible to add [CONTACT-US-FORM] Shortcode in the php template?
I tried it and it did not work

Thanks

wordpress page worked, but not the method I want

[CONTACT-US-FORM]


php Contact Us template I want to try something like this but did not work

<?php
/*
Template Name: [contact us]

*/
get_header(); ?>
[CONTACT-US-FORM]
<?php get_footer(); ?>

Answer
echo do_shortcode('[CONTACT-US-FORM]');

use this in your template

Look here for more Do Shortcode