Skip to content
Advertisement

How can I call a WordPress shortcode within a template?

There’s a plugin for the Contact us form.

To activate the form, all you have to do is to place [CONTACT-US-FORM] in the page…

My page is calling a page template. Is it possible to add the [CONTACT-US-FORM] shortcode in the PHP template?

I tried it and it did not work.

The WordPress page worked, but not the method I want.

JavaScript

PHP Contact Us template I want to try something like this, but it did not work.

JavaScript

Advertisement

Answer

JavaScript

Use this in your template.

Look here for more: Do Shortcode

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement