I want to have the short code render in part of index.php.
Does anyone know how to do this so it actually works? When I put the shortcode in the index php (even in a div), it just renders as the code - instead of the list of posts.
Thanks
I want to have the short code render in part of index.php.
Does anyone know how to do this so it actually works? When I put the shortcode in the index php (even in a div), it just renders as the code - instead of the list of posts.
Thanks
nknews as alchymyth said, you can use the do_shortcode function on your index.php file.
Use something like:
<?php
do_shortcode('[catlist id=5]');
?>Hi there... i know it's an old tread, but i'm having problems on using do_shortcode in my index.php file. Is it possible that this function only works into templates?
This topic has been closed to new replies.