Forums

[resolved] trouble with second query in multiple loop template (3 posts)

  1. bodhidude
    Member
    Posted 2 years ago #

    I'm trying to create a frontpage template that displays the latest post then below that a specific set of featured posts. I created two loops and the the first loop with the latest post works but the second loop is not working. The second loop is trying to do a query to pull the set of featured posts by their post ids using post_in. I may have this all wrong because I'm new to PHP but any help would be appreciated. This is the frontpage: http://www.awakeninthedream.com/wordpress/

    Here is the code for the template:
    http://wordpress.pastebin.com/m59d90e5f

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    1. Add wp_reset_query() after the first Loop

    2. post__in has two underscores - not 1.

  3. bodhidude
    Member
    Posted 2 years ago #

    thanks that helped...had to get my array down too.

Topic Closed

This topic has been closed to new replies.

About this Topic