WordPress.org

Support

Support » How-To and Troubleshooting » PHP to show image when inside a specific category?

PHP to show image when inside a specific category?

  • Is there a simple piece of wordpress php code that will display something only if you are in 1 specific category? I understand how and if/then statement works but not how to do it with the special WP code

    What I want to do is something like …

    IF category=specific-category THEN echo image.jpg

    I hope this makes sense.

Viewing 1 replies (of 1 total)
  • I’m sure this is something simple but, I don’t even know where to look or understand the complexities involved with wordpress.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP to show image when inside a specific category?’ is closed to new replies.
Skip to toolbar