Skip Navigation

[Resolved] Need to setup costom map markers based on taxonlmy

This thread is resolved. Here is a description of the problem and solution.

Problem:

Use [wpv-conditional] shortcodes in Blocks editor.

Solution:

I suggest you try with WP built-in shortcode block, put those codes into shortcode block, and test again.

Relevant Documentation:

https://wordpress.com/support/wordpress-editor/blocks/shortcode-block/

This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by dan-catalinN 4 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1815909
screencapture-explorebihor-ro-wp-admin-admin-php-2020-10-19-11_53_16.png
screencapture-explorebihor-ro-wp-admin-post-php-2020-10-19-11_49_20.png

Tell us what you are trying to do?
I am trying to setup a map using different markers based on custom taxonomy 'experienta. Each post have a custom field for location. Its slug is 'adresa'. Not all posts types are having this taxonomy, but for those I plan to set the marker icon based on post type. I tried to follow the forum posts, but is not working. For the moment is set the conditional only for one term of the taxonomy, but is not working.
Is there any documentation that you are following?
I followed posts in your forum, and come up to the step seen in screen capture, but on map is not displayed anything even there is a post having set that term used in the conditional shortcode. I mentioned that I have registered the has_term function in toolset settings, as seen in the uploaded image.
Is there a similar example that we can see?

What is the link to your site?
explorebihor.ro

#1817153

Hello,

Since you are using shortcodes to display those codes of your screenshot:
https://toolset.com/wp-content/uploads/2020/10/1815909-screencapture_explorebihor_ro_wp_admin_post_php_2020_10_19_11_49_20.png

I suggest you try with WP built-in shortcode block, put those codes into shortcode block, and test again.

More help:
hidden link

#1817315
screencapture-explorebihor-ro-harta-interactiva-2020-10-20-11_17_48.png
screencapture-explorebihor-ro-wp-admin-post-php-2020-10-20-11_03_40.png
screencapture-explorebihor-ro-harta-interactiva-2020-10-20-11_06_14.png

I have made the modification suggested and it worked, but now, the Post type custom filter search is not having any impact on the points displayed on the map. More, between the custom search area and the map is displayed either a space if content is selected by the filters or is displayed "No items found" if no content correspond to the filters. How can synchronize the map with the custom search results and not to have displayed that space between the map and the custom search area?

#1817371

I assume the original problem of this thread is resolved, for other new questions, please check the new thread here:
https://toolset.com/forums/topic/the-post-type-custom-filter-search-is-not-having-any-impact-on-the-points-displayed-on-the-map/

#1817487

My issue is resolved now. Thank you!