WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Difficult exclusion request for loop (2 posts)

  1. nwbingham
    Member
    Posted 5 years ago #

    Hi all:

    I have searched around and tried a few things, but my knowledge of PHP is insufficient. I found myself with loops inside loops and was going around in circles.

    My issue is that I have a multi user blog. The index displays at the top the latest post excerpt from each of the two authors. Under this featured section there is the normal loop displaying the latest 10 posts regardless of author. However, I would like this loop to exclude the two posts already displayed in the aforementioned feature.

    Can the post id be saved from the two original loops so that in the main loop there can be a condition that only display post if post_id does not equal first_id || second_id?

  2. nwbingham
    Member
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags