WordPress.org

Ready to get started?Download WordPress

Forums

Why does query_posts only work in the sidebar? (1 post)

  1. chaz7979
    Member
    Posted 5 years ago #

    I am trying to display the most recent posts in a specific category on the single page of an article before the comment section but it seems as though the query_posts just fails. If I grab the same following snippet and move it to the sidebar, it works just fine. Any ideas?

    <?php query_posts('cat=4&showposts=10'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.