Pierre Schneider
Forum Replies Created
-
Forum: Plugins
In reply to: [Basic Google Maps Placemarks] Error with do_shortcode in templateHi Loic-33,
Sorry but I don’t remember about that problem.
I did’t use it from 3 months ago (I was just tried that plugin). So It’s difficult for me to return in this function to see what is the matter.(Fr)Je disais que je ne me souviens plus de ce problème. Je n’utilise plus ce plugin depuis 3 mois (je faisais des essais à cette époque). Ca m’est difficle pour moi de replonger dedans.
Désolé.Forum: Plugins
In reply to: [Basic Google Maps Placemarks] Error with do_shortcode in templateHello,
Well, I solved the problem like this,
In my “function.php” :
add_filter( 'bgmp_map-shortcode-called', '__return_true' );
In my “header.php” :
<?php global $post; $shortcodePageSlugs = array( // add the slugs of any pages/posts containing the map to $shortcodePageSlugs. 'reservation', 'hotels-ventoux' ); if( in_array( $post->post_name, $shortcodePageSlugs ) || is_front_page() || is_home() ) echo do_shortcode('[bgmp-map]'); ?>
And now it is OK with my 3 pages with map and the others pages without map and without error!!
Forum: Plugins
In reply to: [Basic Google Maps Placemarks] Error with do_shortcode in templateHi,
Euh, I think you don’t answer me because you think I have to look for in the FAQ or the Installation Guide.
I read everything with my English is not very good, I also looked for on forum, but I think I have followed all your tips.
I don’t understand why it request Javascript and CSS on page where there is no map to show, while there is no problem on pages with map ( using “$shortcodePageSlugs” )I found this post because I had the same error for one page (error 403 forbiden).
After looking for a long time, I discovered the problem for me.
I changed some words in the page and I could not actualise the cache.I had always the old page shown on the browser. So I decided to delete myself the files created by WP Super Cache in the root of my website(a folder with the name of my page with two files into : mypage.html and mypage.html.gz).
After I loaded again the modified page with WP Super Cache.
And I got the 403 error.
So looking in the folder created by WP Super Cache, I saw only the gz file into. I loaded this archive with my FTP, decompressed and reloaded it to get the folder completed with the 2 files.
And it was fine again!!!
I hope it will help you…