• Resolved startribe

    (@startribe)


    Hey Community,

    I am trying to come up with a conditional command that will display or write and s if the the page is of my interview category. What I have is:
    <?php if(is_category('interview')) { echo ('s')}; ?>

    I know I’m off, and any help would be greatly appreciated.

    Thanks,
    orion

Viewing 2 replies - 1 through 2 (of 2 total)
  • Well, this:

    <?php if( is_category('interview') ) { echo 's'; } ?>

    should work. That is, if it’s really on a category query (and not a single post page for a post in that category).

    Thread Starter startribe

    (@startribe)

    It worked!

    I love this forum, I am looking forward to when I get good enough to help with this stuff too.

    Thank you so much Kafkaesqui,
    All the Best,
    Orion

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘help on PHP if command’ is closed to new replies.