Using Shortcodes outside of Posts/Pages
-
Hello
I have been trying to use a plugin called “Content by Country” to try and generate some content based on what country a user is coming from. Basically i’m trying to test a feature so I can have a “Hello America” type message on my homepage.
I found many places that say this can be acheieved easily by using the following:
<?php echo do_shortcode('[cbc:+gb]You are in the UK[/cbc]'); ?> <?php echo do_shortcode('[cbc:+us]You are in America[/cbc]'); ?>However, this certainly does not work for me in WordPress 3.0.
Can anyone shed some light on this for me?
Many thanks,
Aaron
The topic ‘Using Shortcodes outside of Posts/Pages’ is closed to new replies.