dgamoni
Forum Replies Created
-
Forum: Plugins
In reply to: [LocateAndFilter] RFC: Add support for dynamic category filterHi @getiem
it’s added in latest version plugin
You need upgrade plugin for latest version (1.3.574) for use new shortcode
eg [LocateAndFilter map_id=320 categoryfilter=”51″]
eg https://locateandfilter.monothemes.com/project_locatie/didam/Please see documentations for setup
https://locateandfilter.monothemes.com/docs/locateandfilter-wp-plugin/create-map/shortcodes/Thanks for using the plugin
Do not forget to leave feedback on the plugin pages so that others users can find it in the search
https://www.ads-software.com/support/plugin/locateandfilter/reviews/Forum: Plugins
In reply to: [LocateAndFilter] Additional fields as an imageadd to your custom plugin this code, it works for me
add_action('plugins_loaded', 'init_tags_for_locate_and_filter_plugin'); function init_tags_for_locate_and_filter_plugin() { if ( class_exists('Locate_And_Filter_Addon_Helper') ) { new Locate_And_Filter_Addon_Helper; Locate_And_Filter_Addon_Helper::define_custom_tags( array( 'project_image' =>'project_image'), 'all', getDataCallbackFn_place_tags, 'project_image' ); function getDataCallbackFn_place_tags( $field, $id){ $html = ''; ob_start(); $project_image = get_field('project_image', $id); echo '<a href="'.$project_image.'"><img src="'.$project_image.'" style="width:300px;">'; $html .= ob_get_contents(); ob_end_clean(); return $html; } } else { add_action('admin_notices', 'wc_not_loaded'); } } function wc_not_loaded() { printf( '<div class="error"><p>%s</p></div>', __('Sorry cannot create tag because Locate_And_Filter is not loaded') ); }
Forum: Plugins
In reply to: [LocateAndFilter] Is it possible to show a shortcodetry this
$num = get_post_meta( $id, 'usr', true ); echo do_shortcode( "[usr ".$num ."]" );
Forum: Plugins
In reply to: [LocateAndFilter] Is it possible to show a shortcodeHi
Thanks for using the plugin
It’s possible add via custom tag1 create custom tag, add to functions.php this code
see doc https://locateandfilter.monothemes.com/docs/locateandfilter-wp-plugin/developers-guide/add-new-custom-tags/
egLocate_And_Filter_Addon_Helper::define_custom_tags( array( 'custom_shortcode_filed' =>'custom_shortcode_filed'), 'all', getDataCallbackFn_custom_shortcode_filed, 'custom_shortcode_filed' ); function getDataCallbackFn_custom_shortcode_filed( $field, $id){ $html = ''; ob_start(); echo do_shortcode( "[gallery]" ); $html .= ob_get_contents(); ob_end_clean(); return $html; }
4 add to tooltip or to navigation template this tag
https://prntscr.com/so1f2b5 result https://prntscr.com/so1frz
see demo https://locateandfilter.monothemes.com/demo-map-for-post-by-filter-categories-and-tags-default-left-layout/I hope this helps
Forum: Plugins
In reply to: [LocateAndFilter] Additional fields as an imageHi
Thanks for using the plugin1 Add an image field with ACF in Marker
https://prntscr.com/so0du32 upload image to ACf in marker
https://prntscr.com/so0hnq3 create custom tag, add to functions.php this code
see doc https://locateandfilter.monothemes.com/docs/locateandfilter-wp-plugin/developers-guide/add-new-custom-tags/Locate_And_Filter_Addon_Helper::define_custom_tags( array( 'project_image' =>'project_image'), 'all', getDataCallbackFn_place_tags, 'project_image' ); function getDataCallbackFn_place_tags( $field, $id){ $html = ''; ob_start(); $project_image = get_field('project_image', $id); echo '<a href="'.$project_image.'"><img src="'.$project_image.'" style="width:300px;">'; $html .= ob_get_contents(); ob_end_clean(); return $html; }
4 add to tooltip this tag https://prntscr.com/so10ia
see demo https://locateandfilter.monothemes.com/demo-map-for-post-by-filter-categories-and-tags-default-left-layout/
https://prntscr.com/so126lI hope this helps
Forum: Plugins
In reply to: [LocateAndFilter] RFC: Add support for dynamic category filterYou have a csv file with locations (lat lng ) or another source?
I have ready-made solutions for import.
Create a new topic for this, I will help youForum: Plugins
In reply to: [LocateAndFilter] RFC: Add support for dynamic category filterThanks for using the plugin.
I will add this in the future
but Now you can do it without changing the plugin
small hack for this
1 create shortcode with chekbox filter you taxonomy
see main demo eg https://prntscr.com/smsf5l
2 create custom archive page for you taxonomy
eg taxonomy-$taxonomy.php
see wp documentation https://developer.www.ads-software.com/files/2014/10/Screenshot-2019-01-23-00.20.04.png
3 and add small script and style to archive page
eg for main demo<?php $queried_object = get_queried_object(); $term_id = $queried_object->term_id; ?> <style> #bloc1 { display: none;} #bloc2 { width: 100%; } #bloc3 { display: none;} </style> <script> jQuery(document).ready(function($) { $( '#la-filter-<?php echo $term_id; ?> input' ).trigger('click'); }); </script>
eg
https://locateandfilter.monothemes.com/project_locatie/didam/
https://locateandfilter.monothemes.com/project_locatie/hoevelaken/Forum: Plugins
In reply to: [LocateAndFilter] Enable Openstreetmap HTTPS supportit’s fixed
please update the plugin to version 1.3.572Forum: Plugins
In reply to: [LocateAndFilter] Enable Openstreetmap HTTPS supportHi guys
I’ll fix this in the next few daysForum: Plugins
In reply to: [LocateAndFilter] Locations not saved (javascript error)Hi
js error fixed, plugin updated
new version available now 1.3.56
but this is not due to an js error
after adding the marker you clicked button ‘Get the Marker’ ?
https://prntscr.com/q96fjasee doc https://locateandfilter.monothemes.com/docs/locateandfilter-wp-plugin/add-markers/
p. 3.3
https://prntscr.com/q96g01Forum: Plugins
In reply to: [TheThe Image Slider] [Plugin: TheThe Image Slider] Resize slide not workingSet access to a folder wp-content/plugins/thethe-image-slider/cache 777