Custom routes for custom post type?

I have a custom post type called ‘event’. An event has multiple subpages like registration, speakers, contact us, etc. Currently 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

With each URL displaying the information from each custom field, respectively.

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

2 Answers
2

You may want to use this resource. You can create own post types links (and probably relational template structure)

They said you can create domain.com/{prefix}/{post-type-slug}/{postname} like URLs with their code (Also you create even custom ones).

Leave a Comment