Custom tempelate for Custom URL's
-
I am not sure how relevant my question is with respect to WordPress execution and due to my limited knowledge i am struck at this point.I have a destination page like
https://www.mydomain.com/new-delhi
at this page i am displaying general information about New Delhi and on the right hand side-bar i am displaying some of the tourist places within delhi, so that if some one want information about them they can click on that and go to that page.I am planning to have URL’s like
https://www.mydomain.com/new-delhi/tourist-spot-1
https://www.mydomain.com/new-delhi/tourist-spot-2for other destination i want same type of URL like
https://www.mydomain.com/goa/tourist-spot-1
https://www.mydomain.com/goa/tourist-spot-1where
Goa
will display information about goa and there will be a list of places displaying on right hand side bar.
For all major destinations (like New Delhi, Goa) i have a generic page which will take care of displaying information about that Destination and i want a single page which should be able to handle and display information about destinations with in the main place.
So in short be it New-Delhi or Goa i want a common custom template to handle and display information about there tourist places.I read through the Template Hierarchy and know how template being searched by WordPress based on the URL, but i am unable to find a solution as how i can make sure to have a generic template to handle and display information about sub-destinations.
If i need to change the URL pattern i can do that.any help in this regard will really be helpful as i am some how strucked here.
- The topic ‘Custom tempelate for Custom URL's’ is closed to new replies.