Forums

if (!in_category('1')) wont work (1 post)

  1. wp student
    Member
    Posted 5 months ago #

    I want to add a piece of javascript, other than category 1 archive and posts. the following methods works, but it wont show code on other pages. such as homepage or posts from other categories

    <?php if (!in_category('1')) {?>
    my design here
    <?php } ?>

Reply

You must log in to post.

About this Topic