Rewrite url for custom post type and custom taxomonies in wordpress
Rewrite url for custom post type and custom taxomonies in wordpress I have custom post type and custom taxonomies. Currently I am using custom category in my menus and url of that is. https://example.com/customposttypeslug/categories1 https://example.com/customposttypeslug/categories2 https://example.com/customposttypeslug/categories3 So i want to change this to as below https://example.com/categories1 https://example.com/categories2 https://example.com/categories3 I have gone through many articles on stack and google but i didnt find how to remove customposttype slug from url for custom post type. Here is the code for creating custom post type and taxonomies add_action('init', 'shopify_theme_app_cpt'); function shopify_theme_app_cpt() { register_post_type('apps', array( 'labels' => array( 'name' => 'Shopify Themes & Apps', 'singular_name' => 'Shopify Theme & App', ...