WordPress.org

Ready to get started?Download WordPress

Forums

List category posts
Can't display list on Frontpage (4 posts)

  1. FredrixDesign
    Member
    Posted 1 year ago #

    Hello!

    Great plug-in. It works like a charm. I have one problem though. The list of posts, which I'm trying to display through a do_shortcode on the frontpage (located in the header.php), won't display - neither will it in the single.php. It works on ALL other pages except the ones that displays posts already.

    I've tried it on other WordPress websites on different hosts and servers and it's the same result. How can I fix it? I've been trying to fix it for months now.

    Cheers,
    Frederick Andersen

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

  2. Frank
    Member
    Posted 1 year ago #

    Just before do_shortcode() try this line:
    wp_reset_query();

  3. FredrixDesign
    Member
    Posted 1 year ago #

    Didn't work, Frank. I'm sorry.

  4. Frank
    Member
    Posted 1 year ago #

    Yeah.
    Please try exactly:
    <?php echo do_shortcode( '[catlist]' ); ?>
    Maybe you've forgotten to echo the function call?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.