WordPress.org

Support

Support » How-To and Troubleshooting » activate script when a category is selected???

activate script when a category is selected???

  • im trying to get code to work on pages with a praticular category selected im using javascript inbetween the php but i cant get the code to work for the life of me this is what i have tried so far

    <?php

    $category = get_the_category();
    if (is_category(‘action’)) { ?>

    script code

    <?php } ?>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘activate script when a category is selected???’ is closed to new replies.