Ready to get started?Download WordPress


List category posts
Getting the shortcode to work if placed in theme ? (4 posts)

  1. nknews
    Posted 3 years ago #

    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.



  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

  3. fernandobt
    Plugin Author

    Posted 3 years ago #

    nknews as alchymyth said, you can use the do_shortcode function on your index.php file.

    Use something like:

        do_shortcode('[catlist id=5]');
  4. Stefano De Prophetis
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic