1

I am trying to use shortcode in wordpress. but its not working. I am new at this kind of job.

My codes are:

This is a post with short code ......

[contact-form]
[contact-field label="Name" type="name" required="true" /]
[contact-field label="Email" type="email" required="true" /]
[contact-field label="Website" type="url" /]
[contact-field label="Comment" type="textarea" required="true" /]
[/contact-form] 

But it doesn,t work. It print the code as it is. Whats wrong with my code?

enter image description here

0

The Wordpress application (ie. from Wordpress.org) does offer some default shortcodes that you can reference.

[audio]
[playlist]
[wp_caption]
[caption]
[embed]
[gallery]
[video]

[contact] is not one of them. You seem to be referring to the Shortcodes offered by Wordpress.com however these shortcodes are peculiar to sites hosted on Wordpress.com - they will not work in your Wordpress application.

To call other shortcodes you will need to choose a plugin that includes contact shortcodes, or write your own, as described in the Wordpress Shortcode API.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.