Support » How-To and Troubleshooting » WP 2.7 – in_category() bug

WP 2.7 – in_category() bug

  • 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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Found a workaround, but not a fix.

    I’ll use is_category() instead…

    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)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP 2.7 – in_category() bug’ is closed to new replies.