Is it possible to implement the shortcode within my template ?
I have tried using this code but it doesn’t seem to work.
<?php echo do_shortcode('[rotatingtweets screen_name='my_id']'); ?>
My work around is to create a post and reference it within my template using
<?php query_posts('category_name=twitter_feed&showposts=1'); ?>
Preferably I would like to directly reference the plugin so that I don’t have a random post. Hope that makes sense.
Great plugin by the way.
- The topic ‘Placing shortcode in tempalte’ is closed to new replies.