Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #46481

    Hi
    I’m trying to include some category based conditional content in the theme. I’m working on the concept of:
    <?php if (is_category(‘this’)) { ?>
    DO THIS
    <?php } elseif (is_category(‘that’)) { ?>
    DO THAT
    <?php } else { } ?>

    How ever I’m not sure were to add the code. I’m not too ot with PHP so any happy would be great!
    cheers
    Andy

    #46482

    Sorry forgot to mention I’m using the Simple Catch Pro theme!

    #46498
    Sakin
    Keymaster

    @Andrew Pawley: First you shouldn’t edit the core theme files inside ‘simple-catch-pro’ directory. So, if you want to add these code then you need to build child theme and edit it. For is_category condition, see this http://codex.wordpress.org/Function_Reference/is_category

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Category Conditinal Content’ is closed to new replies.