Ok so Im trying to lock a sub-category widget to a category page and it’s posts and I used the code ‘is_category || (is_single && in_category(X)’ but it still shows up on every page. When I just use is_category() it does the same thing still showing up on home page.
Now when I use is_single() it finally disappears from home which has me baffled lol. Someone help me =)
- The topic ‘Category code not working’ is closed to new replies.