WordPress.org

Ready to get started?Download WordPress

Forums

WP 2.7 - in_category() bug (3 posts)

  1. JorzoR
    Member
    Posted 5 years ago #

    Hi there,

    I think i've found a annoying bug.

    I'm working on a theme that uses in_category() to show posts within that category. BUT, when i use in_category(5) on the homepage, it is always true...

    Even when i put it at the top of de header.php file with nothing above it.

    It always outputs 1 when doing an echo, or on other words: it is always true!

    I've already tried to see if it's a plugin problem, but it's not. Even with all plugins disabled it's showing that...

    I don't have the same problem with other category ID's. Only with category ID 5.

    Can someone please help me!

  2. JorzoR
    Member
    Posted 5 years ago #

    Found a workaround, but not a fix.

    I'll use is_category() instead...

  3. JorzoR
    Member
    Posted 5 years ago #

    Bumping back my old topic...it actually did not work.

    Still didn't fixed this problem, any help?

    is_home is also not working properly on the homepage. Displays NOTHING (no true, no false)

Topic Closed

This topic has been closed to new replies.

About this Topic