WordPress.org

Ready to get started?Download WordPress

Forums

Check to see if category has no posts (3 posts)

  1. Ron Zvagelsky
    Member
    Posted 5 years ago #

    Can anyone provide me with some insight as to how I can check to see if a category has posts. I am not trying to simply list categories.

    I would like to set up some sort of conditional statement where if a specific category is empty (or has no posts) then I wouldn't display anything.

    So for instance:

    If category X is not null (has posts), then echo "YZ".

    Thanks!

  2. Ron Zvagelsky
    Member
    Posted 5 years ago #

    Bump

  3. cebradesign
    Member
    Posted 4 years ago #

    I've been looking something like this. Did you find an answer?
    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.