Wordpress Url rewrite

Closed Posted 6 years ago Paid on delivery
Closed Paid on delivery

Ok. I have Wordpress site with same slug for page and Custom Post Type

So page name is "event" and CPT is "event"

Now what I want is if I create child page - "event1",its url is "localhost/wp/event/event1"

also if I create CPT event2 - its url is "localhost/wp/event/event2"

Now as Wordpress gives priority to CPT instead of pages,it gives 404 on above "localhost/wp/event/event1"

So,want I rewrite to solve this 404 and want it thus

If CPT exists - it displays that but if it doesnt exist - it looks for page name

It is essential to have same slug for both,so pls dont advice to change name

You need to implement in your local ,test and tell me solution

Quick 30$ for someone

Regards

WordPress

Project ID: #16600378

About the project

3 proposals Remote project Active 6 years ago

3 freelancers are bidding on average $23 for this job

tkshamseer

Hi, I can do this for you. please come to chat for more discussion. waiting for your positive response

$30 USD in 1 day
(72 Reviews)
4.8