LeRoy LeRoy - 1 year ago 72
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

in the page...................
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


wordpress page worked, but not the method I want


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

Template Name: [contact us]

get_header(); ?>
<?php get_footer(); ?>

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

use this in your template

Look here for more Do Shortcode

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download