gd_map > cat_filter
This topic contains 18 replies, has 3 voices, and was last updated by Alex Rollin 5 years, 7 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
August 14, 2019 at 7:51 am #503009
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 –>August 14, 2019 at 8:04 am #503017Hi 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!
August 14, 2019 at 8:10 am #503022Have 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>
August 14, 2019 at 5:50 pm #503105It is missing a closing quote: gd_map title=”(missing quote)
August 14, 2019 at 8:18 pm #503145Hi Alex, these are using single quotes. Will try with double quotes.. Mike
August 14, 2019 at 8:20 pm #503146Replaced 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..
August 14, 2019 at 9:40 pm #503156Are you using the shortcode builder? Try using that to make a fresh shortcode.
https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/
August 14, 2019 at 10:39 pm #503164Hi 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
August 15, 2019 at 1:01 am #503167Blocks 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
August 15, 2019 at 2:16 am #503176This reply has been marked as private.August 15, 2019 at 3:49 am #503178There are two captchas on the login form and I cannot get in, please check.
August 15, 2019 at 3:51 am #503179Very sorry about that Alex, please try again. Mike
August 15, 2019 at 4:04 am #503180Please check! 🙂
August 15, 2019 at 4:13 am #503182Hi 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
August 15, 2019 at 5:02 am #503184There 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.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket