Custom post type on two pages with different taxonomies but not use the CPT slug

Question

Looking for some advice…

I want to have two pages that list posts based around one custom post type (archive-false). For this example I’ve called the CPT: trains. The two pages are called electric and steam (these will show post with relevant taxonomies)

When I click through to the posts currently the slug is changing to include the CPT name:

domain/trains/post-train-a
domain/trains/post-train-b

Is there a way around this to have it so the slug uses the page the posts appear on in the slug instead of the CPT:

domain/electric/post-train-a
domain/steam/post-train-b

I’m using CPT UI plugin to create the CPT

0
Peteman 3 weeks 2021-03-28T07:51:49-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse