Remove custom post type slug but keep related category taxonomy permalink

When registering your custom post type have you tried to disable with_front in your rewrite array? For example, using an example for the post type book: add_action( ‘init’, ‘codex_book_init’ ); /** * Register a book post type. * * @link http://codex.wordpress.org/Function_Reference/register_post_type */ function codex_book_init() { $labels = array( ‘name’ => _x( ‘Books’, ‘post type general … Read more

Custom Post Type Taxonomy – Permalinks generating, but posts not found

Your previous edit was a bit closer. Change the post type rewrite slug to: cosmetics/treatments/%treatment-type% Then change all instances of %type% to %treatment-type% in the treatment_permalink function. Everything should then work correctly after you flush rewrites. For future reference, the Monkeyman rewrite analyzer plugin is very helpful for debugging rewrite rules. As I mentioned, you … Read more

Custom Post Type tag taxonomy “Page Not Found”

So, it looks like I didn’t understand how a custom taxonomy works. http://joshrodg.com/hallmark/letters/tags/moore/ should be http://joshrodg.com/hallmark/tags/moore/ and http://joshrodg.com/hallmark/letters/tags/kenya/ should be http://joshrodg.com/hallmark/tags/kenya/. My mistake was that I expected the tags to be linked off my custom post type url, and not my main domain. I found the answer here: Archive template for taxonomy terms Thanks, Josh

Getting a 404 on single custom post type page when using rewrite on a custom taxonomy

Add priority with at least 1 to your add actions: add_action( ‘init’, ‘add_training_post_type’, 1 ); add_action( ‘init’, ‘create_training_taxonomies’, 1 ); Currently your issue is that your post type and taxonomy rewrite slugs are identical, so the URL base would be the same and it confuses WP. Fortunately there is easy solution, just add this code … Read more

Custom Taxonomy From Database

If custom taxonomy makes sense to you as approach to organization of data, but not as interface workflow then you should consider building custom interface for it. Some frameworks out there can work with native taxonomies, but provide alternate interfaces for them. So you might even find something fitting already done. The more low key … Read more