Custom Rewrite Slug not working
-
I’m using Custom Post Type UI to create a new post type.
Archive
The archive-[posttype].php file works just fine for showing an index of posts to this post type.Single Post
If I do not set a custom post slug, the single-[posttype].php file works fine. The url shows up as example.com/[posttype]/post-name.php. But that’s not what I want.If i do set a custom slug, so instead the URL would be example.com/custom-term/post-name.php, I click on a post from the archive and get a 404 error page. In other words, the single post doesn’t display, I just get the 404 page.
I’m using Custom Post Type UI to create these post types and enter in the custom post slug.
I’ve tried setting off and on permalinks and even throwing flush_rewrite_rules() in at the end of functions.php, no luck.
Any ideas?
- The topic ‘Custom Rewrite Slug not working’ is closed to new replies.