The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

How to make this an IF statement (2 posts)

  1. Preeminent
    Posted 3 years ago #

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


    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.


  2. Pioneer Web Design
    Posted 3 years 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