How to create our own routes in wordpress for a custom post type?


I have a custom post type called ‘event’. Now an event has multiple subpages like registration, speakers, contact us, etc., I have each one of the content is saved as one or more custom fields.

I would like to have an url structure like

  • events{event_slug}registration
  • events{event_slug}speakers
  • events{event_slug}contactus

etc and show only the information related to the registration, speakers, contact us respectively.

Is there a way, we can achieve this in WordPress?

Any suggestions would be helpful.

, , gloom 3 years 2019-12-05T12:27:29-05:00 0 Answers 96 views 0

Leave an answer