Forums

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

  1. nknews
    Member
    Posted 1 year 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.

    Thanks

    http://wordpress.org/extend/plugins/list-category-posts/

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

  3. picandocodigo
    Member
    Posted 1 year ago #

    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]');
    ?>
  4. steo83
    Member
    Posted 5 months 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