GeoDirectory SupportLocation Switcher doesn't show location selected – GeoDirectory Support https://wpgeodirectory.com/support/topic/location-switcher-doesnt-show-location-selected/feed Mon, 06 Apr 2026 01:18:43 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/location-switcher-doesnt-show-location-selected/#post-9540 <![CDATA[Location Switcher doesn't show location selected]]> https://wpgeodirectory.com/support/topic/location-switcher-doesnt-show-location-selected/#post-9540 Wed, 23 Jul 2014 09:56:56 +0000 purpleedge Hi Vikas,

Bug 1: If I choose a new location the location switcher doesn’t show the new location, until I select the “View All” link for a CPT.

See attached images.

————————————————————————

I am using the Enfold theme and want to show the current location in the title bar on the home page. I experimented with …

        $location_terms = geodir_get_current_location_terms('session') ;    // Lookup any current session filters by location
        echo 'Home Page Location session = ';                                // GWB
        print_r($location_terms);                                           // GWB show them at the top of the page

After selecting a location the $location_terms returns [gd_country] = cityname when it returns to the home page. That doesn’t look right?

If I click on the site logo to return to the home page the location_terms returns the array correctly. See Image 4.

What is the correct way to get the current location filter, or is this demonstrating a bug?

———————————————————————–

Bug 2: I think this is related, and similar to an error I reported previously…

i. Select a location from the Location Filter

ii. Click on View All – the View All link is…

site/retailers/city-name

iii. Click on the site logo

iv. The View All link is now …

site/retailers/australia/new-south-wales/city-name

and it gives a 404 error

Login details in next message

]]>
https://wpgeodirectory.com/support/topic/location-switcher-doesnt-show-location-selected/#post-9545 <![CDATA[Reply To: Location Switcher doesn't show location selected]]> https://wpgeodirectory.com/support/topic/location-switcher-doesnt-show-location-selected/#post-9545 Wed, 23 Jul 2014 10:01:59 +0000 purpleedge https://wpgeodirectory.com/support/topic/location-switcher-doesnt-show-location-selected/#post-9726 <![CDATA[Reply To: Location Switcher doesn't show location selected]]> https://wpgeodirectory.com/support/topic/location-switcher-doesnt-show-location-selected/#post-9726 Thu, 24 Jul 2014 06:46:58 +0000 Vikas

A valid license is required to view this reply.

You may need to login

OR

Buy either a Membership or valid license for this product.

Thanks, Team GeoDirectory!

]]>
https://wpgeodirectory.com/support/topic/location-switcher-doesnt-show-location-selected/#post-9727 <![CDATA[Reply To: Location Switcher doesn't show location selected]]> https://wpgeodirectory.com/support/topic/location-switcher-doesnt-show-location-selected/#post-9727 Thu, 24 Jul 2014 07:03:22 +0000 purpleedge https://wpgeodirectory.com/support/topic/location-switcher-doesnt-show-location-selected/#post-9734 <![CDATA[Reply To: Location Switcher doesn't show location selected]]> https://wpgeodirectory.com/support/topic/location-switcher-doesnt-show-location-selected/#post-9734 Thu, 24 Jul 2014 10:29:08 +0000 Vikas

A valid license is required to view this reply.

You may need to login

OR

Buy either a Membership or valid license for this product.

Thanks, Team GeoDirectory!

]]>
https://wpgeodirectory.com/support/topic/location-switcher-doesnt-show-location-selected/#post-9737 <![CDATA[Reply To: Location Switcher doesn't show location selected]]> https://wpgeodirectory.com/support/topic/location-switcher-doesnt-show-location-selected/#post-9737 Thu, 24 Jul 2014 10:33:46 +0000 purpleedge

A valid license is required to view this reply.

You may need to login

OR

Buy either a Membership or valid license for this product.

Thanks, Team GeoDirectory!

]]>
https://wpgeodirectory.com/support/topic/location-switcher-doesnt-show-location-selected/#post-9742 <![CDATA[Reply To: Location Switcher doesn't show location selected]]> https://wpgeodirectory.com/support/topic/location-switcher-doesnt-show-location-selected/#post-9742 Thu, 24 Jul 2014 11:02:39 +0000 Vikas

A valid license is required to view this reply.

You may need to login

OR

Buy either a Membership or valid license for this product.

Thanks, Team GeoDirectory!

]]>