WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Waqas
    Member
    Posted 1 year 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 } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic