• 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

    http://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

    http://www.mydomain.com/new-delhi/tourist-spot-1
    http://www.mydomain.com/new-delhi/tourist-spot-2

    for other destination i want same type of URL like

    http://www.mydomain.com/goa/tourist-spot-1
    http://www.mydomain.com/goa/tourist-spot-1

    where 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I think that all you need are a bunch of ‘Pages’. Go to wp-admin->Page and create “Goa”. Assign it a custom template– your “generic page which will take care of displaying information about that Destination”– from the “Page Attributes->Templates” menu on the right. Then create your “tourist-spot” pages as child pages of “Goa” and assign a template– your “single page which should be able to handle and display information about destinations”.

    If you made a Custom Post Type for your Destinations/Attractions list you could automate that.

    🙂 you just need to edit your permalinks from dashboard.
    Moreover, make categories like goa, delhi and other places.

    then use permalink like:
    /%category%/%postname%

    Nevermind… sorry… double post somehow.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom tempelate for Custom URL's’ is closed to new replies.