Forums

How to make this an IF statement (2 posts)

  1. Preeminent
    Member
    Posted 3 months 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. Seacoast Web Design
    Member
    Posted 3 months ago #

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

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

Reply

You must log in to post.

About this Topic