Dijo David
Dijo David

Reputation: 6195

Shortcode is not working in wordpress 3.0

Is there anything need to enable for shortcode to work in Wordpress 3.0? I have tried some short codes and none of them working as expected.

regards - dj

Upvotes: 0

Views: 3001

Answers (3)

nuwinda
nuwinda

Reputation: 11

Plus make sure you call the following function

the_content() 

to output your content

Upvotes: 1

DBUK
DBUK

Reputation: 1373

If its a template file you are trying to put them into you will need to put the code into a function and display it like:

<?php echo do_shortcode( '[contact-form-7 id="448" title="Contact"]' ); ?>

I am guessing you have it all sorted by now though as I have just checked when this was posted.

Upvotes: 2

hsatterwhite
hsatterwhite

Reputation: 7355

Short codes are as simple or as complex as you intend them to be. Also they can solve some pretty annoying problems and add a lot of functionality for your users. One thing I always use a short code for is embedding YouTube videos and media of the same format.

Here are some links that may help you:

Upvotes: 1

Related Questions