[resolved] splash page (3 posts)

  1. krisnam
    Posted 4 years ago #

    I want a splash page with a chronological listing of all posts subdivided by category. I have been messing around with wp_query. But am wondering if there is an easier way to do this.

  2. nsathees
    Posted 4 years ago #

    wp_query will do that. But if you want to list all at once, check for a sitemap page code!

  3. krisnam
    Posted 4 years ago #

    I used query_posts. I am a little worried about the caveat: I was hoping someone could explain this better. It does -seem- to work for my purposes.

    You should not use query_posts() to create secondary listings (for example, a list of related posts at the bottom of the page, or a list of links in a sidebar widget).

    For creating secondary loops, you should make a new instance of WP_Query and use that instead. The easiest way to do this is with get_posts().

Topic Closed

This topic has been closed to new replies.

About this Topic