WordPress.org

Ready to get started?Download WordPress

Forums

How to make this an IF statement (2 posts)

  1. Preeminent
    Member
    Posted 1 year ago #

    Hey all, how could I format this to make it an If statement.

    http://pastebin.com/znzHHbTy

    I'm displaying items with a category of "awesome" in that above.
    I need it to just return text of, "sorry, no items at this time" or something, if there are no items with that category. Just like the basic wordpress loop does.

    Thanks!

  2. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    Take a look at category.php of the twentyeleven theme...

    <?php if ( have_posts() ) : ?> etc...

Topic Closed

This topic has been closed to new replies.

About this Topic