I'm trying to change the Category URL for the Coupons
For example, If I post 10 Amazon Coupons and link them to a Category named " Amazon ". Then the url of the Category is like " domain.com/coupon-category/amazon ". I want to remove that slug - " coupon-category " and make the url simple and clean like " domain.com/amazon " or I want it to be short like " domain.com/store/amazon ".
But unfortunately it's not working.
what I've tested in functions.php of coupon theme:
'menu_icon' => 'dashicons-editor-insertmore',
'has_archive' => true,
'supports' => array('title', 'editor', 'thumbnail'),
'rewrite' => array("slug" => "coupons"), // Permalinks format
register_post_type( 'coupons' , $args );
'show_admin_column' => true,
'hierarchical' => true,
'rewrite' => array(
'slug' => 'coupons-category' ( modified here - but not working )
I've modified the slug in the Functions.php of the theme. But still no use. If I rename it, It's displaying 404 error. Please let me know if this is possible or not?