Latest update broke category/postname URLs
Hi there,
When updating to the newest version of this plugin, pages in a custom post type under a category show up as 404.
We have a custom post type called "event". Those "event" posts can have a category with the slug "event-category" with one of three choices: tradeshow, workshop, user-group.
The custom permalink structure for our events is:
/%event-category%/%postname%/
So, an event categorized as tradeshow would be
/event/tradeshow/post-name/
After updating to the latest version, now when we browse to one of those event pages you get a 404.
Thanks for your help,
Gaelan
Just wanted to add that I rolled back to version 0.9.6 and now it works perfectly!
I tried to update to v1.4.0 as I saw there had been a lot of fixes in the past year, but we still have the same problem. Unfortunately I'm going to have to roll back again to v0.9.6.
@gaelanlloyd If you use flush_rewrite_rules in your code?
Please remove the code.
I have the same problem...
I am also having this problem. I have my custom CPT permalink set to "/%category%/%postname%/". These permalinks now result in a 404 error. MY question is: Is v0.9.6 the latest version where this permalink configuration will work?
@yliharma Please Try execute register_taxonomy before register_post_type.
@torounit I tried: the category page works, but the post page "/%category%/%postname% is still a 404.
add_action('init', 'mysite_register_taxonomies', 10); add_action('init', 'mysite_register_post_type', 20);
@torounit I tried: the category page works, but the post page "/%category%/%postname% is still a 404. add_action('init', 'mysite_register_taxonomies', 10); add_action('init', 'mysite_register_post_type', 20);