gd_map > cat_filter

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

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

Open Support Ticket
  • Author
    Posts
  • #503009

    Mike Lee
    Expired Member
    Post count: 46

    Hi,

    Re: http://v2.studentflat.co.nz > Whoop theme

    Q. Why does the gd_map shortcode not work properly when cat_filter is enabled ?

    Please see our homepage code below, you will notice additional places show on the map when the cat_filter is enabled, which does not make sense to us.

    Regards

    Mike

    <div class=”wp-block-geodirectory-geodir-widget-map” style=”margin-bottom:20px”>//TODO: One of these maps is duplicated for tech support review, below.[gd_map title=” width=’100%’ height=’425px’ maptype=’ROADMAP’ zoom=’0′ map_type=’auto’ post_settings=’true’ all_posts=’true’ scrollwheel=’false’ sticky=’false’ static=’false’ post_type_filter=’true’ ]</div>

    <!– wp:geodirectory/geodir-widget-map {“show_advanced”:true} –>
    <div class=”wp-block-geodirectory-geodir-widget-map”>[gd_map title=” width=’100%’ height=’425px’ maptype=’ROADMAP’ zoom=’0′ map_type=’auto’ post_settings=’true’ post_type=” terms=” tags=” all_posts=’true’ post_id=” search_filter=’false’ post_type_filter=’true’ cat_filter=’true’ child_collapse=’false’ map_directions=’false’ scrollwheel=’false’ sticky=’false’ static=’false’ ]</div>
    <!– /wp:geodirectory/geodir-widget-map –>

    #503017

    Kor
    Moderator
    Post count: 16516

    Hi mike,

    Thanks for your post. Could you try changing the parameters from ‘true’ to ‘1’ and ‘false’ to ‘0’ as shown in the attached image and see if it helps?

    Thanks!

    #503022

    Mike Lee
    Expired Member
    Post count: 46

    Have changed now, still not good sorry..

    <div class=”wp-block-geodirectory-geodir-widget-map” style=”margin-bottom:20px”>//TODO: One of these maps is duplicated for tech support review, below.[gd_map title=” width=’100%’ height=’425px’ maptype=’ROADMAP’ zoom=’0′ map_type=’auto’ post_settings=’1′ all_posts=’1′ scrollwheel=’0′ sticky=’0′ static=’0′ post_type_filter=’1′ cat_filter=’1′ ]</div>

    #503105

    Alex Rollin
    Moderator
    Post count: 27815

    It is missing a closing quote: gd_map title=”(missing quote)

    #503145

    Mike Lee
    Expired Member
    Post count: 46

    Hi Alex, these are using single quotes. Will try with double quotes.. Mike

    #503146

    Mike Lee
    Expired Member
    Post count: 46

    Replaced with double-quotes, to no avail. We imported these listings from V1. New listings show on the map, not sure why some are missing when we add cat_filter..

    #503156

    Alex Rollin
    Moderator
    Post count: 27815

    Are you using the shortcode builder? Try using that to make a fresh shortcode.

    https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/

    #503164

    Mike Lee
    Expired Member
    Post count: 46

    Hi Alex,

    We don’t use the shortcode builder.

    In block view ‘GD > Map’ advanced settings does not display all parameters, hence we specify the shortcode as HTML.

    Q. Is this due to our data, is there something we have to do to our data to have that filter work as expected?

    Regards

    Mike

    #503167

    Alex Rollin
    Moderator
    Post count: 27815

    Blocks should work exactly the same as shortcodes or widgets. We can take a look at that for you, just share WP Admin credentials in a private reply with a link to the page where the map should be placed.

    After looking at your shortcode, I think I know what the issue is. In the block, try selecting map type = directory. Then you will see the appropriate adavnced options. The shortcode you used has archive map options that won’t work in a directory map.

    
    
    
    [gd_map width="100%" height="425px" maptype="ROADMAP" zoom="0" map_type="directory" post_settings="1" post_type_filter="1" cat_filter="1"]
    

    If you want to use shortcodes, you will need to use the shortcode builder. You can always find one in the CPT tabs:

    Places – Settings – Tabs – Add shortcode, use the builder, then remove the field

    #503176

    Mike Lee
    Expired Member
    Post count: 46
    This reply has been marked as private.
    #503178

    Alex Rollin
    Moderator
    Post count: 27815

    There are two captchas on the login form and I cannot get in, please check.

    #503179

    Mike Lee
    Expired Member
    Post count: 46

    Very sorry about that Alex, please try again. Mike

    #503180

    Alex Rollin
    Moderator
    Post count: 27815

    Please check! 🙂

    #503182

    Mike Lee
    Expired Member
    Post count: 46

    Hi Alex,

    I see you are still editing and have added another map, however I still don’t see a map with the filter and all the pins as expected..

    Mike

    #503184

    Alex Rollin
    Moderator
    Post count: 27815

    There are many many listings without location. The map will not work correctly while some listings do not have required data filled in.

    You can export them for bulk edit. Every listing needs a location and at least one category.

Viewing 15 posts - 1 through 15 (of 19 total)

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

Open Support Ticket