Stiofan O'Connor
Forum Replies Created
-
AuthorPosts
-
OK, thanks for trying.
I have excluded the main theme styles from being added to the main css file, the problem sems resolved but keep an eye out for any strance css issues (might not be any)
Also i could only recreate this on FF, chrome did not have this.
Stiofan
January 19, 2016 at 5:29 pm in reply to: Add numbers to map markers on the search results page #69371You are welcome! 🙂
January 19, 2016 at 4:57 pm in reply to: Add numbers to map markers on the search results page #69359ok,
#1 replace this file in core: https://github.com/GeoDirectory/geodirectory/blob/master/geodirectory-functions/map-functions/map_functions.php#2 add this to your child theme functions.php
Stiofan
Hi Jeff,
There are a number of different ways this can be done, the default timing fields hooks will only fire if it has a value, so it could be replaced only if it had a value, You could use this filter ‘geodir_filter_geodir_post_custom_fields’ to give it a value even if it does not have one, or you could use that filter to add a brand new field on the fly in any position you want or you could simply use the address hooks to add it after the address.
Then you have these 3 hooks you can use:
/** * Called before a custom fields is output on the frontend. * * @since 1.0.0 * @param string $html_var The HTML variable name for the field. */ do_action("geodir_before_show_{$html_var}"); /** * Filter custom field output. * * @since 1.0.0 * * @param string $html_var The HTML variable name for the field. * @param string $html Custom field unfiltered HTML. * @param array $variables_array Custom field variables array. */ if ($html) echo apply_filters("geodir_show_{$html_var}", $html, $variables_array); /** * Called after a custom fields is output on the frontend. * * @since 1.0.0 * @param string $html_var The HTML variable name for the field. */ do_action("geodir_after_show_{$html_var}");It would be great if you could use the below filter to add the business hours to our schema output also:
/** * Allow the schema JSON-LD info to be filtered. * * @since 1.5.4 * @param array $schema The array of schema data to be filtered. */ $schema = apply_filters('geodir_details_schema', $schema);If you have any questions feel free to ping me on skype.
Thanks,
Stiofan
January 19, 2016 at 11:25 am in reply to: Add numbers to map markers on the search results page #69296Hi Dmitriy,
This would not be impossible to implement but it would require we add 1 filter to the function create_list_jsondata() and it would require that you use very specific markers icons for search, do you know that hovering over “pinpoint” will make the marker jum so it is possible to know what marker does what there? If you want me to add that filter and give you and example code, let me know.
Thanks,
Stiofan
This reply has been marked as private.🙂
January 19, 2016 at 10:30 am in reply to: Uncaught RangeError: Maximum call stack size exceeded #69292Hi Brik,
You seem to have a coming soon page up now so i cant check, can you provide wp-admin details in a private reply? (only staff can see private replies)
Thanks,
Stiofan
January 18, 2016 at 6:29 pm in reply to: Uncaught RangeError: Maximum call stack size exceeded #69243Hello,
You have places that have “N/A” as the lat/lon, this is not allowed.
http://dev.zezz.ee/trigenics/wp-admin/admin-ajax.php?action=geodir_ajax_action&geodir_ajax=map_ajax&ajax_action=cat&cat_id=137&search=&gd_posttype=gd_placePlease resolve this.
Thanks,
Stiofan
Hello,
For the map problem, please replace this file in core: https://github.com/GeoDirectory/geodirectory/blob/master/geodirectory-functions/map-functions/get_markers.php
Thanks,
Stiofan
Hello, write capabilities are not enabled so i cant test but my suspicion is that the main problem is the theme style.css importing other stylesheets, can you test by removing these two lines?
@import url(//fonts.googleapis.com/css?family=Raleway:400,300,500,600,700,800); @import url(//fonts.googleapis.com/css?family=Gloria+Hallelujah);Let us know.
Thanks,
Stiofan
Hello,
Yes our fields are not standard meta data, we do this for many reasons.
We have a few helpfull functions if you already have an ID, https://wpgeodirectory.com/docs/codex/geodirectory_functions/geodir_get_post_info/
but if you want something like a query, this should do it:
global $wpdb, $plugin_prefix; $post_type = 'gd_place'; $table = $plugin_prefix . $post_type . '_detail'; $post_arr = $wpdb->get_results($wpdb->prepare( "SELECT * FROM $wpdb->posts p JOIN " . $table . " gd ON gd.post_id=p.ID WHERE gd.gd_city=%s ", array('manorville') ) , ARRAY_A);The good thing about this is you can filter by anything and multiple fields, if you have a complex query you want me to make a example of, just ask.
Thanks,
Stiofan
Hello,
Please check your staging site, i added compatibility settings, i also had to add 1 function to your child theme functions file to fix the details pages.
The paging thing seems to be set to page at 12, i am not 100% sure where the 12 value is coming from, i assume a plugin or theme, maybe you know.
Thanks,
Stiofan
You need the CPT manager installed.
GD>Custom Post Types>Edit>Revisions – allow for post content (not custom fields) revisions to be stored (not recommended).
Tick that, then check.Stiofan
Ok i am not sure i fixed that one last time? I have fixed it now, let me know if it happens again.
Thanks,
Stiofan
-
AuthorPosts