show_special map shortcode

This topic contains 7 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #513571

    Mitch Canton
    Expired Member
    Post count: 167

    Hello,

    How do we create a map of where show_special_only=”1″ via shortcode, that then has the applicable listings displayed below the map? I saw some v1 docs referencing show_special_only=”true” but don’t see anything for v2?

    Thank you.

    #513574

    Alex Rollin
    Moderator
    Post count: 27815

    If you mean the special offers field, it is not possible to filter the map directly, but you could create a new WP Page, add a GD Map set to Archive, then use GD Listings on the same page with show_special_only=”1″ , then the map would show those listings.

    #513576

    Mitch Canton
    Expired Member
    Post count: 167

    Hey Alex,

    Thanks for the very timely reply, much appreciated.

    I created a new page and used

    [gd_map width=”100%” height=”425px” maptype=”ROADMAP” zoom=”12″ map_type=”archive” post_settings=”1″]
    [gd_listings title=”test special title” sort_by=”az” layout=”4″ show_special_only=”1″]

    and it returned the map with “No records found”

    of note, the gd_listings part did properly only show the special_only listings, just nothing on the map.

    and if I change map_type to “auto” or “directory” the map does render, displaying ALL of the listings in the database (just not limiting to those in the gd_listings shortcode on that page).

    What else should I try?

    Thanks.

    #513744

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #514010

    Kiran
    Moderator
    Post count: 7069

    Hi Mitch,

    This has been fixed and it will be in next release.
    Patch available at here:
    https://github.com/AyeCode/geodirectory/pull/967/commits/9bc2163520efe8615e673088826b51f65ad4defd

    On non GD pages to show markers from listings widget/shortcode, use CSS CLASS or CSS ID in tags parameter. Mostly class name will be “.geodir-listings”, but if you have multiple listings widgets on same page then CSS ID should be used in tags.
    Ex:

    tags=".geodir-listings"

    or

    tags="#gd_listings-2"

    Ex:

    
    
    [gd_map width="100%" height="425px" maptype="ROADMAP" zoom="12" map_type="archive" post_settings="1" tags=".geodir-listings"]
    [gd_listings title="test special title" sort_by="az" layout="4"]

    Let us know.

    Regards,
    Kiran

    #514178

    Alex Rollin
    Moderator
    Post count: 27815
    #514216

    Mitch Canton
    Expired Member
    Post count: 167

    I made all the code changes listed in those two items in github, changed the shortcode for the tags class, and the display of the special offers items works as expected.

    Thank you very much for stellar support.

    Have a great day.

    #514261

    Alex Rollin
    Moderator
    Post count: 27815

    Excellent!

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

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

Open Support Ticket