Remove custom post type slug from URL and add taxonomy Slug

You can set up simple tax/cpt permalinks with the rewrite argument when you register the post type: function wpd_product_brand_types() { register_taxonomy( ‘brand’, ‘product’, array( ‘rewrite’ => array( ‘slug’ => ‘brand’, ‘with_front’ => false ) ) ); register_post_type( ‘product’, array( ‘label’ => ‘Products’, ‘public’ => true, ‘supports’ => array( ‘title’ ), ‘rewrite’ => array( ‘slug’ => … Read more

Add /category/ to an author archive page

You can achieve this by adding a new rewrite rule using ‘add_rewrite_rule`. If the category is the default WordPress category, you won’t have to register a query_var but if your category is a custom category, then you would have to register a query_var using the query_vars filter. If category is the default WordPress category: function … Read more