Route custom post type to page
-
Hi there,
I’ve got a question about routing multiple (custom post type) posts to a page. But with a different url (not with get parameters).
It has to be routing to a page, because i’ve setup some custom fields on that specific page.
Example:
Page: Request offer (slug:request-offer)
Post_type: Events (slug:events)
Post: Event 1Preferred url:
https://sitename.com/events/event-1/request-offer/The page is also directly accessible:
https://sitename.com/request-offer/Is this possible?
I’ve been looking into the WP_Rewrite class, but i have a difficult time understanding wp rewrites.
- The topic ‘Route custom post type to page’ is closed to new replies.