WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Category slug change feed bug?!? (3 posts)

  1. mwolstat
    Member
    Posted 5 years ago #

    When I changed my category slugs I still see all the old posts on the category listing page at the new URL, but the feeds are empty except for the few posts I've published since the slug changes.

    For example:
    Category: "Cat One" slug changed from "cat-one" to "cat_one"
    /category/cat-one/ now 404s, good
    /category/cat_one/ shows all posts formerly visible at above URL, good
    BUT
    /category/cat_one/feed/ shows no post entries! VERY BAD!

    With a little snooping I found the new slugs stored in the wp_terms table but the category_nicename column in the wp_category table still had the old slugs. Is this an issue anyone else has seen?

  2. mwolstat
    Member
    Posted 5 years ago #

    Argh!

    I just posted a new article to "Cat One" and it shows up in the category page AND the feed. So now the category page shows all legacy posts plus the new post, but the feed only shows the new post. Is there a difference in the way WP queries the DB for category posts? Why expose the ability to change category slugs if it screws everything up so badly?

    The recap:
    /category/cat-one/ Apache 301 to new cat URL
    /category/cat_one/ shows all posts formerly visible at above URL, good
    BUT
    /category/cat_one/feed/ shows only newest posts, all older posts missing from feed.

    Halp? Anyone?

  3. mwolstat
    Member
    Posted 5 years ago #

    Hrm. I was looking at the main query that builds the cat post page and compared it to the main query that builds the feed page and noticed a JOIN on a table created by a poorly built plugin. Disabling the plugin solved the problem.

Topic Closed

This topic has been closed to new replies.

About this Topic