WordPress.org

Ready to get started?Download WordPress

Forums

archive.php showing posts from wrong categories (4 posts)

  1. Blutarsky
    Member
    Posted 3 years ago #

    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.

  2. Blutarsky
    Member
    Posted 3 years ago #

    Re-shaping the categories, solved the problem

  3. chedie
    Member
    Posted 3 years ago #

    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!

  4. Blutarsky
    Member
    Posted 3 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic