Stiofan O'Connor
Forum Replies Created
-
AuthorPosts
-
Hi Kim,
I would ask them to check via a 3rd party to make sure its not a local network issue, i woudl try from the EU server https://tools.pingdom.com/
Thanks,
Stiofan
Hi Bruce,
I am not sure what exactly was happening but all i did was go into the places settings address custom field and save it, this seems to have fixed something int he DB, if its happening with any other fields i suggest you do the same. I ran the upgrade functions again just incase it was a failed upgrade that was the problem. Let us know if you have any further problems.
Thanks,
Stiofan
I’ve got this thing whereby I HATE WP Super Cache
lol 🙂
For Autoptimize, the inline CSS part is a recommendation, we found it increases load speed as it reduces the number of calls, you can unset that if you want.
When setting up CF remember to disable rocket loader, this is known to cause issues.
Also this is a good read: https://wp-rocket.me/blog/the-truth-about-google-pagespeed-insights/
Thanks,
Stiofan
I am not really sure what you expect us to do?
I would suggest you maybe redirect 404’s to a pages stating you might have found an expired listing? There are plugins to do that.Stiofan
It won’t import on my demo site, i probably would need ur whole DB and i can test that way.
One thing i see from your file is you are adding a dummy image file, this will be downloaded and added to your site which is kinda pointless when there are other options.Stiofan
Hi Jorge,
THough your homepage is loading HTTPS ok the directory pages are not as you have unsecure images.
Try the plugin “better search replace” and search for “http://petevents.ch/” and replace with “https://petevents.ch/”
That should fix it.
Thanks,
Stiofan
Hi Raymon,
Thanks for sharing your findings, there are just a few points i would add to this.
#1. We only support either GD Booster or WP Super Cache + Autoptimize, this does not mean you can’t use others it just means we will only help resolve problems with our supported ones.
#2 I would not get hung up too much on Google pagespeed, i prefer to use https://tools.pingdom.com which will tell you the actual loading times of the site, and both of my sites running each of the two supported caching both load and score higher than your site there where as your site scores much higher in google page speed.
#3 I would also suggest a CDN, it can be a bit expensive per month for one site but makes more sense if you have a few.Thanks,
Stiofan
not tested but it would be something like this:
add_action('geodir_after_description_on_listing_detail','_my_details_map',11); function _my_details_map(){ global $post; global $map_jason; $marker_json = $post->marker_json != '' ? json_decode( $post->marker_json, true ) : array(); $marker_icon = ( ! empty( $marker_json ) && ! empty( $marker_json['i'] ) ) ? $marker_json['i'] : ''; $icon_size = geodir_get_marker_size( $marker_icon ); $marker_json['w'] = $icon_size['w']; $marker_json['h'] = $icon_size['h']; $map_jason[] = json_encode( $marker_json ); $address_latitude = isset( $post->post_latitude ) ? $post->post_latitude : ''; $address_longitude = isset( $post->post_longitude ) ? $post->post_longitude : ''; $mapview = isset( $post->post_mapview ) ? $post->post_mapview : ''; $mapzoom = isset( $post->post_mapzoom ) ? $post->post_mapzoom : ''; if ( ! $mapzoom ) { $mapzoom = 12; } $map_args = array(); $map_args['map_canvas_name'] = 'preview_map_canvas'; $map_args['width'] = '950'; $map_args['height'] = '300'; $map_args['child_collapse'] = '0'; $map_args['maptype'] = $mapview; $map_args['autozoom'] = false; $map_args['zoom'] = "$mapzoom"; $map_args['latitude'] = $address_latitude; $map_args['longitude'] = $address_longitude; $map_args['enable_cat_filters'] = false; $map_args['enable_text_search'] = false; $map_args['enable_post_type_filters'] = false; $map_args['enable_location_filters'] = false; $map_args['enable_jason_on_load'] = true; $map_args['enable_map_direction'] = true; $map_args['map_class_name'] = 'geodir-map-preview-page'; geodir_draw_map( $map_args ); }Stiofan
I have that exact sever i’m recommending you, pass me a 100 listing file and i’ll time it.
Stiofan
Thanks for letting us know 🙂
This is fixed and will be in the next release, thanks for reporting.
Stiofan
I would suggest the dedicated option i suggested above.
Thanks,
Stiofan
Hi Tia,
All i did on your main site was rename some folders, for the 404 on the other site it was a permalinks issue, it can happen for a number of reasons but the solution is simple, just save the permalinks page, that is all i did and all seems to be working now.
Thanks,
Stiofan
April 12, 2017 at 8:54 am in reply to: Multiple posts to FB for same listing; no longer works after update… #373075Thanks for the heads up, i’m not sure a CDN could do that unless you were using their own plugin but hey if it works then great 🙂
Stiofan
Here is a short snippet that will do it for the first two, u just need to add the rest as the same
add_filter('geodir_custom_field_output_address','_my_short_state_geodir_cf_address',11,3); function _my_short_state_geodir_cf_address($html,$location,$cf){ // we add the >NAME< so we only replace the regions and not the region name in a street address. $state_long = array( ">Alabama<", ">Alaska<", ); // we add the >NAME< so we only replace the regions and not the region name in a street address. $state_short = array( ">AL<", ">AK<", ); $html = str_replace($state_long,$state_short,$html); return $html; }Stiofan
-
AuthorPosts