What I have is
- Created a new page with slug
- Created a template file at my theme's folder that will show all records with post_type
[UPDATE] 3.I forgot to mention that each custom post type "monument" has a "city" parent [/UPDATE]
What I want to do is, in that same file, to add a list of cities links, and when clicking on any of the cities, it will display only the monuments of that city.
I already have a custom post type
The URL I want it to display, when clicking on a city's link, is
Is that possible with
cityshould be a taxonomy. If you did that, what you're asking is very simple, see this question for details.
citya taxonomy. Otherwise, you'll need to do something like here: wordpress.stackexchange.com/questions/99378/…