Support » Fixing WordPress » archive.php showing posts from wrong categories

  • I’m using a customized archive.php script for my custom theme, but basically without any apparent & significant big change. Header, loop & footer, without altering the loop, so there’s no custom query.

    The problem is that when the script is used to show posts belonging to one category, some posts belonging to other categories are shown.

    How is that?

    Details: I do use ‘posts_where’ filter to filter out particular posts titles, however this should not interfere with categories, particularly because the filter uses “AND” condition on post_title.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Re-shaping the categories, solved the problem

    Good day!

    What do you mean by re-shaping the categories? I’m having the same problem and I can’t figure out how to solve this. 🙁

    Will appreciate any solution.

    Thank you!

    Hum, quite a long time a go.
    If i’m not wrong, after publishing the first post, I have discovered ambiguity in the categories, such as similar/duplicated categories, so I have deleted the garbage in the categories and that did the job!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘archive.php showing posts from wrong categories’ is closed to new replies.