I
I
its2easyy2018-03-15 10:55:51
WordPress
its2easyy, 2018-03-15 10:55:51

How to display the same posts at different urls and with different templates?

There is a custom post type, for example cars, and a custom taxonomy that is attached to it, for example rent, in which there are categories of cars for rent. The page of an individual car is displayed by url /cars/{{slug}}/ , and the list of cars by these categories is displayed by url /rent/{{rent_category}}/ .
Cars now have a sale price added that is not displayed on the rental pages, but now you need to create sale pages that are distinguished by the presence of a sale price in the template. Accordingly, the same posts should be opened additionally at other urls and with a modified template, for example, for the page of a single car /cars/sale/{{slug}} and for the category /sale/{{rent_category}}/ . In what way can this be done?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question