Stiofan O'Connor
Forum Replies Created
-
AuthorPosts
-
hi peter please see here: we will be releasing a patch tomorrow:
https://wpgeodirectory.com/support/topic/broken-category-icons/#post-33965it takes a bit of getting sued too sorry, it’s hard to know everyones skill level.
Basically replace this functions at the very end to the taxonomy_functions.php file
function geodir_get_term_icon($term_id = false,$rebuild=false) { global $wpdb; if(!$rebuild){$terms_icons = get_option('gd_term_icons');} else{$terms_icons = '';} if(empty($terms_icons)){ $default_icon_url = get_option('geodir_default_marker_icon'); $taxonomy = geodir_get_taxonomies(); $post_types = geodir_get_posttypes(); $tax_arr = array(); foreach($post_types as $post_type){ $tax_arr[]= "'".$post_type."category'"; } $tax_c = implode(',',$tax_arr); $terms = $wpdb->get_results("SELECT * FROM $wpdb->term_taxonomy WHERE taxonomy IN ($tax_c)"); //$terms = get_terms( $taxonomy ); //print_r($terms );exit; foreach( $terms as $term ) { $post_type = str_replace("category", "", $term->taxonomy); $a_terms[$post_type][] = $term; } foreach ($a_terms as $pt=>$t2) { foreach ($t2 as $term) { //print_r($term); $term_icon = get_tax_meta($term->term_id, 'ct_cat_icon', false, $pt); if ($term_icon) { $term_icon_url = $term_icon["src"]; } else { $term_icon_url = $default_icon_url; } $terms_icons[$term->term_id] = $term_icon_url; } } update_option('gd_term_icons',$terms_icons); } if ($term_id && isset($terms_icons[$term_id])) { return $terms_icons[$term_id]; }elseif($term_id && !isset($terms_icons[$term_id])) { return get_option('geodir_default_marker_icon'); } return $terms_icons; }Thanks, please let me know what u find.
Stiofan
March 13, 2015 at 2:16 pm in reply to: Locaiont switcher not working with default Location url prefix setting. #33939i have been on another problem, i will get to this next.
StiofanMarch 13, 2015 at 10:57 am in reply to: Locaiont switcher not working with default Location url prefix setting. #33926provided wp-admin details are not working.
Please also provide FTP.Thanks,
Stiofan
Hi, Can you explain exactly what you want it to be like and we can help better. Also if you provide wp-admin via private reply then we can try and set it up for you the way you want it.
Thanks,
Stiofan
I am not sure what you mean by that, can you explain how to replicate?
Thanks,
Stiofan
Hi bob please check now, your default sort_by was being used instead of the search sort by…
Stiofan
Hi David, can you provide a better explanation of how/were you want to call the tag url? Why not hardcode for example?
Thanks,
Stiofan
This reply has been marked as private.Try going and changing a setting in your GDF settings and then changing it back, it’s likely your CSS file needs re-saved.
Stiofan
You have to remember this is first time loads with cache disabled, most of the time the JS/CSS files will be cached by browser etc…
I used to use cloudflare all the time but recently had a few problems with them and i have disabled it on all my sites, but i would still give them a try, i just have not had the time to investigate my problems with them. Just be aware not to enable “rocketloader”
Thanks,
Stiofan
OK thanks, i have look into it further and it was a bug, you can find the changes here: https://github.com/GeoDirectory/geodirectory/commit/5208f06182361c0fbd5e11e0febc9d99e5d358bb
You can provide wp-admin details and i will apply the fix if you are not sure or the release will be out tomorrow.
Thanks,
Stiofan
I can say that i will be looking at improving all aspects of load times in the very near future. But 1.25mb is not a large page size these days, most yelp pages are about 2mb.
Thanks,
Stiofan
Hi, Please try going into any category and clicking save, let me know if this fixes it.
Stiofan
-
AuthorPosts