Title: help on PHP if command
Last modified: August 18, 2016

---

# help on PHP if command

 *  Resolved [startribe](https://wordpress.org/support/users/startribe/)
 * (@startribe)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/help-on-php-if-command/)
 * 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)

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/help-on-php-if-command/#post-501885)
 * 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](https://wordpress.org/support/users/startribe/)
 * (@startribe)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/help-on-php-if-command/#post-501888)
 * 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.

## Tags

 * [command](https://wordpress.org/support/topic-tag/command/)
 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [if](https://wordpress.org/support/topic-tag/if/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [startribe](https://wordpress.org/support/users/startribe/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/help-on-php-if-command/#post-501888)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
