Custom post type and page with same name mixup
-
Anyone maybe knows how to avoid problem if you have a custom post type with slug ‘medical-treatments’ and then i create a default page named ‘medical-treatments’ in pages and then the problem with the regular page showing up appears … any way to sort this out?
so
https://example.com/medical-treatments/some-treatment-category/single_treatment works – triggers single-medical-treatments.php
https://example.com/medical-treatments doesnt work – aka triggers index.php every time and not page.phpp.s. i can’t change the slug and i can’t change the page name – the urls needs to be like that …
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom post type and page with same name mixup’ is closed to new replies.