Annonces is a WordPress plugin. It display announces posted in your WordPress interface on a Google map.
- CMS : https://wordpress.org/
- Plugin : https://fr.wordpress.org/plugins/advanced-custom-fields/
- GoogleMaps : https://developers.google.com/maps/documentation/javascript/get-api-key
- In your backadmin, go to "Plugins" panel
- Install the plugin Annonces
- Install required plugin : ACF Free and update it to version 5.x.x
- Activate plugins Annonces and ACF
- Active the plugin
- Follow the informations
- Create your first annonce
- Choose the category, pin-color
- View you annonce
- View all the annonces put the shortcode in a page
[annonces] : Display the Google Map in a page with the shortcode :
add_filter('set_marker_data', 'mytheme_set_marker_data', 10, 2);
function mytheme_set_marker_data($microdata, $annonce_id) {
// datas
return $microdata;
}
add_filter('bloc_filter_title', 'mytheme_set_filter_title', 10, 1);
function mytheme_set_filter_title($filter_title) {
// datas
return $filter_title;
}
You can create single-announces.php in your child theme to edit the single page of announce : code for the single-annouce.php
- Width the ACF plugin, you can create or import fields to personalize your announces.
- Edit the templates as explain above.
- You will obtain custom announces which will suit your project
We use SemVer for versioning. For the versions available, see the tags on this repository.