• Chris Lowry

    (@medical-revision)


    On my blog, for some reason posts are being listed in categories they don’t belong in.

    I’ve checked several posts on that page, and they don’t have that category.

    For example, this post:

    I’ve actually been through and removed all its categories, but its still showing on the list of “Geek” posts.

    Is this likely to be due to the new “primary category” option? Posts that don’t have a primary category assigned, or similar?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • I think it has to do with how you’re using years as a title or as a taxonomy.
    The standard rewrite rules that WordPress uses parse numbers into a date archives.

    Moderator bcworkz

    (@bcworkz)

    Hmmm, I don’t think numeric titles are the cause. They are problematic like Joy suggests though. I would put a letter or 2 in front of the numeric post slug, like yr2019. The numeric only display title is fine.

    I’m not aware of any primary category feature, I doubt it would influence term queries anyway. Another issue is the pagination for category lists doesn’t work right either. The term query for posts is being corrupted by either your theme or a plugin.

    Try installing and activating the health-check plugin. Invoke the troubleshooting mode and see if the same issues arise.

    Thread Starter Chris Lowry

    (@medical-revision)

    Thanks, yes I didn’t think that numerics could be the sole issue as its happening with other posts, that’s the only one I’ve done like that I think.

    I’ve managed to fix it, was using a loop based on WPQuery rather than have_posts() and somehow that was messing things up. Thanks for the pointer to it being a theme issue though, that got me there!

    Hoping the pagination is sorted now, hadn’t noticed an issue before

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Posts showing under wrong categories’ is closed to new replies.