Differentiating country from city pages

This topic contains 2 replies, has 2 voices, and was last updated by  Paolo 7 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #379540

    offshorly
    Expired Member
    Post count: 23

    Hi,

    Don’t know if I should post this here or in the multilocations add-on forum.

    Anyway, we’re trying to add custom content that would only be displayed on country pages but not in the city pages, specifically an image menu of all cities under that country. As I understand it both country and city is using the same location page template. Is there a way to detect from the location page template when the location page is displaying a country (and what country) so that we can tailor the custom content to display accordingly?

    Using the latest versions of WP, GD core, and GD Locations Manager. Thanks in advance.

    #379597

    offshorly
    Expired Member
    Post count: 23

    Never mind, found a workaround by parsing the url of the current page and querying the WP db for needed data.

    #379601

    Paolo
    Site Admin
    Post count: 31211

    Thanks for letting us know 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount