• Resolved Sakshi Tyagi

    (@sakshityagi343)


    Hi,

    I have registered one custom post-type i.e. “Doctors” and custom taxonomy i.e. “Doctor Location”. In “Doctor Location” taxonomy I have all the States and Cities which are mapped with all the Doctors to group doctors location wise.

    I need to show URL structure for taxonomy e.g. https://[site-domain]/eye-doctors/[city-name] and Doctor page URL structure should be e.g. https://[site-domain]/eye-doctors/[doctor-name]

    I have tried using rewrite slug option by adding same rewrite-slug for both post-type and taxonomy as “eye-doctors” and taxonomy page works but post-type single page show 404. I even tried saving permalinks after updating rewrite-slug in CPT UI plugin.

    Please help.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Taxonomy and custom post-type with same rewrite-slug’ is closed to new replies.