Forums

check if multiple loops have posts, wp query (2 posts)

  1. bazel
    Member
    Posted 5 months ago #

    I have 2 or more loops using wp query on page. How to check if all of them have posts and make else statement. Example if loop A & loop B dont have posts echo 'nothing found'

    Thanks

  2. alchymyth
    The Sweeper
    Posted 5 months ago #

    please paste the code into a http://pastebin.com/ and post the link to it here, to avoid guesswork ...

Reply

You must log in to post.

About this Topic