custom post type conflicting with othere hierarchical and archive in wordpress

I had registered a custom post type and made ‘rewrite’ to change the slug but the slug was the same as one of my pages(but I didn’t need the main slug its slef, just wanted before the post name).

I got the answer:

just set ‘has_archive’ to ‘false’ and the archive is canceled.

Leave a Comment