Shortcodes are powerful tools in WP Maps Pro that allow users to display maps and locations on their WordPress websites with ease. In this tutorial, we will explore two main shortcode: “put_wpgm“. The “put_wpgm” shortcode is automatically generated when a user creates a map. Let’s dive into the details of this shortcode and their various options for more flexibility.
The [put_wpgm] Shortcode:
The “put_wpgm” shortcode is associated with each map created in WP Maps Pro. It serves as a unique identifier for the map and provides various options for customization. Here are the key parameters you can use with this shortcode:
- maps_only=true:
- This parameter displays the map without any listing or filters.
- Ideal for users who want to showcase the map only without additional clutter.
- category=”category 1, category 2″:
- Use this parameter to filter and show locations from specific categories only.
- Enter the names of the desired categories separated by commas.
- show_all_locations=true:
- By default, the “put_wpgm” shortcode displays locations assigned to the map only.
- However, using this parameter will show all locations added in the “Manage Locations” section, regardless of map assignments.
- limit=10:
- The “limit” parameter restricts the number of locations displayed on the map.
- current_post_only=true
- To show the current post’s location on the map only. All other posts will be hidden.
Conclusion
With the “put_wpgm” shortcode, WP Maps Pro provides users with powerful tools to showcase maps and locations effortlessly. Whether you need advanced customization or prefer a simple and elegant map display, this shortcode cater to your needs. Additionally, the extensive list of parameters allows you to fine-tune your map presentation for a seamless user experience. Experiment with these shortcodes and take your map displays to the next level!