• Resolved elhashbrown

    (@elhashbrown)


    I recently noticed that the feed of a Post Type I have set up with a Custom Rewrite Slug is getting a 404 error. When I looked into it I found the feed is at the original slug despite the link in the document head using the Custom Rewrite Slug url. Am I doing something wrong or have I found a bug?

    I have been using the Custom Post Type UI Plugin for a while and find it extremely useful, thanks for your hard work.

    https://wordpress.org/plugins/custom-post-type-ui/

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m having a similar problem, I think, and I just posted here (http://wordpress.org/support/topic/custom-rewrite-slug-messes-with-pagination?replies=1). Following this thread as well.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Honestly not sure if that’d be a bug on our end or not. We don’t do anything special or custom other than provide a UI to select what to register post types/taxonomies with, and actually pass that information into register_post_type() or register_taxonomy(). If we’re somehow doing something wrong in regards to feeds, then that’d be a bug, but if it’s happening the same without our plugin, then it’s beyond us.

    Have you tried using the “Get Code” functionality in your post type list to get the code to register via functions.php or so?

    Thread Starter elhashbrown

    (@elhashbrown)

    Thanks, the code says:

    'rewrite' => array('slug' => 'buyers_guide', 'with_front' => 1),

    I added it to my functions.php along with'feeds' => 'true' but it didn’t seem to make any difference. Any thoughts?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Double checking here: do you have has_archive set to true? the feeds parameter defaults to the value of has_archieve, just a fyi. After you have either set, have you refreshed your rewrite rules? I got it to work once I double checked the has_archive and flushed the rules.

    Thread Starter elhashbrown

    (@elhashbrown)

    I had a page instead of the archive so once I set has_archive as true, removed the page and flushed rules it worked fine. Many thanks for the tip and your work on the plugin.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Excellent to hear that resolved the issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom Rewrite Slug doesn't update feeds’ is closed to new replies.