small changes in todo and in shortcode hook

This commit is contained in:
lenovo
2022-11-14 18:08:53 +01:00
parent beba3c5aab
commit 604cf884c6
2 changed files with 4 additions and 7 deletions

View File

@@ -28,13 +28,13 @@
- [/] deal with window size - [/] deal with window size
- [/] la carte ne s'affiche pas sur les pages - [/] la carte ne s'affiche pas sur les pages
- [ ] zoom sur cluster problem
- [/] filtres sur chrome - [/] filtres sur chrome
- [/] infowindow new design - [/] infowindow new design
- [/] infowindow enlever scroll border - [/] infowindow enlever scroll border
- [ ] enlever ordre alphabetique categories
- [ ] reduire espace checkboxs
- [ ] reduire hauteur du select menu - [ ] reduire hauteur du select menu
- [ ] zoom sur cluster problem
- [ ] dans categories, placer "autres" en bas, et transformer fleches en "autres"
- [ ] effacer les fenetres, au moins sur le bouton effacer, ou sur mouvement
#### verifications: #### verifications:
- api only for this site on fabien's google account - api only for this site on fabien's google account

View File

@@ -155,7 +155,7 @@ add_shortcode('lejourduprof_map', 'mp_ljdp_map');
function mp_update_publish() { function mp_update_publish() {
$post_args = array( $post_args = array(
'numberposts' => 1, 'numberposts' => -1,
//'post_status' => 'draft', //'post_status' => 'draft',
'post_status' => 'publish', 'post_status' => 'publish',
'post_type' => 'post', 'post_type' => 'post',
@@ -216,9 +216,6 @@ function post_published_coordinates($id, $post) {
if ( ! add_post_meta( $id, 'location', $location, true ) ) if ( ! add_post_meta( $id, 'location', $location, true ) )
update_post_meta( $id, 'location', $location ); update_post_meta( $id, 'location', $location );
if ( ! add_post_meta( $id, 'test', "ok", true ) )
update_post_meta( $id, 'test', "ok" );
} }
add_action( 'publish_post', 'post_published_coordinates', 10, 2 ); add_action( 'publish_post', 'post_published_coordinates', 10, 2 );