CBX Google Map

plugin banner

=== CBX Google Map ===
Contributors: codeboxr,manchumahara
Donate link: https://codeboxr.com
Tags: map, google map
Requires at least: 3.5
Tested up to: 4.7.1
Stable tag: 1.0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Easy google map embed using shortcode, Responsive.

== Description ==

Long story short, I was searching for easy google map embed in wordpress using lat, lng and I didn't find one
that is easy and works instantly. So I created one.

**Key Features**

* Custom post type for map
* Easy Shortcode
* Works without custom post type using the same shortcode
* Responsive with browser width and resize
* Info window
* Default global Setting
* Meta field for custom post type
* Easy geo complete feature while finding proper marker position in custom post type edit.
* Easy copy shortcode with mouse click

**Shortcode Params**

The most short form of the shortcode is
[cbxgooglemap id="google map post id here"] where id is post id of custom google map post type

The shortcode works without id and event other params can be override in shortcode params. Here are the other params,
if any param missing it will be taken from post meta field, if missing in meta field it will be taken from global default setting.

id = post id, can be empty
width = numeric value, '%' accepted, no 'px', if only numeric value then px will be added automatically, if empty will be taken from post meta if available
height = nemeric value, no 'px', if empty value will be taken from post meta if available
zoom = default 8, if empty from post meta if available
lat = lattitude value, if empty from post meta , required(at least should be in post meta)
lng = longitude value, if empty from post meta , required(at least should be in post meta)
heading = used for info window title, if empty will be used from post tile if available
address = used for info window content, if empty will be taken from post meta if available

== Installation ==

This section describes how to install the plugin and get it working.

e.g.

1. Upload folder cbxgooglemap to the /wp-content/plugins/ directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to CBX Google map setting, put google map api key (in google project console you need, js map api, geo coding api, e)
4. Place shortcode any where as need

== Frequently Asked Questions ==

= Is there any custom function to call directly ? =

No at this moment

== Screenshots ==

1. Default Setting
2. Custom post listing
3. Map Edit-1
4. Map Edit-2
5. Frontend Map Embed

== Changelog ==

= 1.0.1 =
* Initial release

Author:Sabuj Kundu (profile at wordpress.org)
WordPress version required:5.3
WordPress version tested:7.1
Plugin version:2.0.5
Added to WordPress repository:18-01-2017
Last updated:23-08-2026
Rating, %:100
Rated by:4
Plugin URI:https://codeboxr.com/product/cbx-google-map-f...
Total downloads:21 476
Active installs:800+
plugin download
Click to start download

CBX Map for Google Map & OpenStreetMap makes it easy to add responsive maps to your WordPress website.

Choose between Google Maps and OpenStreetMap, create reusable map locations from the WordPress admin, or display a map directly with a simple shortcode.

The plugin is designed to keep map creation simple. You can search for a location, set the marker position, configure the map, and copy the shortcode with just a few clicks.

OpenStreetMap is supported as an alternative to Google Maps and can be used without a Google Maps API key.

CBX Map for Google Map & OpenStreetMap by Codeboxr

???? Live Demo | ???? Upgrade to PRO | ???? Documentation | ????‍???? Free Support | ???? Pro Support | ???? Contact

Features

  • Google Maps support
  • OpenStreetMap support with no Google Maps API key required
  • Create and manage reusable maps from the WordPress admin
  • Custom post type for saved maps
  • Simple [cbxgooglemap] shortcode
  • Display maps without creating a custom map post
  • Responsive map layout
  • Automatic map resizing with the browser window
  • Configurable map zoom and map type
  • Marker and information window support
  • Custom information window title and content
  • Optional website link in the information window
  • Custom map marker icon
  • Global default settings
  • Map-specific settings through custom fields
  • Location search and easy marker positioning
  • Easy shortcode copying from the map editor
  • Gutenberg block support
  • Elementor widget support
  • Classic WordPress widget support
  • WPBakery Page Builder support

▶️ Watch the Video

Gutenberg, Elementor & Widget Support

CBX Map integrates with popular WordPress content-building tools.

  • Gutenberg Block — Add maps directly from the WordPress block editor.
  • Elementor — Add maps using an Elementor widget.
  • Classic Widget — Add maps through the traditional WordPress widget.
  • WPBakery Page Builder — Add maps using a WPBakery element.

Shortcode

The simplest way to display a saved map is:

[cbxgooglemap id="123"]

Replace 123 with the ID of a map created using the CBX Maps custom post type.

Display a Saved Map

Once you create a map from the WordPress admin, copy its shortcode and place it anywhere that supports WordPress shortcodes.

Example:

[cbxgooglemap id="123"]

Only the id attribute is required when displaying a saved map.

Display a Map Without a Saved Map

You can also create a map directly from shortcode attributes without creating a CBX Map custom post.

Example:

[cbxgooglemap lat="23.8103" lng="90.4125"]<h3>Shortcode Attributes</h3>

* id — Saved CBX Map post ID. Optional.
* maptype — Map type. Default: roadmap. Available values: roadmap, satellite, hybrid, terrain.
* width — Map width. Numeric values are treated as pixels. Percentage values such as 100% are also supported.
* height — Map height in pixels.
* zoom — Initial map zoom level. Default: 8.
* lat — Latitude of the map location. Required when using a map without a saved map post.
* lng — Longitude of the map location. Required when using a map without a saved map post.
* heading — Title displayed in the information window.
* website — Website URL linked from the place name in the information window. Leave empty to disable the link.
* address — Content displayed inside the information window.
* scrollwheel — Enable or disable mouse-wheel zooming. 1 = enabled, 0 = disabled.
* showinfo — Show or hide the information window. 1 = enabled, 0 = disabled.
* infow_open — Control whether the information window is initially open. 1 = open, 0 = closed.
* mapicon — Custom marker icon URL. Leave empty to use the default marker.

Example:

[cbxgooglemap lat="23.8103" lng="90.4125" zoom="12" maptype="roadmap" width="100%" height="400"]

For complete shortcode documentation and Pro features, see the CBX Map documentation.

CBX Map Pro

Get CBX Map Pro

Upgrade to CBX Map Pro to add advanced mapping and location features.

Pro Features

  • Distance search shortcode
  • Distance-based map and list display
  • Display multiple map locations on a single map
  • Use saved map posts as multiple markers
  • Make individual maps public or private
  • Map categories
  • Additional shortcode options and advanced functionality

▶️ Watch the Pro Video

For complete Pro documentation and shortcode options, visit the CBX Map documentation.

Automatic Installation

  1. From your WordPress dashboard, go to Plugins Add New.
  2. Search for CBX Map for Google Map & OpenStreetMap.
  3. Install the plugin.
  4. Activate the plugin.
  5. Go to the CBX Map settings and configure your preferred map provider.
  6. Create a map or use the [cbxgooglemap] shortcode to display a map.

Manual Installation

  1. Download the plugin.
  2. Upload the cbxgooglemap folder to /wp-content/plugins/.
  3. Activate the plugin from the Plugins menu in WordPress.
  4. Open the CBX Map settings.
  5. Configure your map provider and settings.
  6. Create a map or add the shortcode to your desired page, post, widget, or supported page builder.

Google Maps API

If you use Google Maps, configure the required Google Maps API credentials according to Google’s current API requirements.

If you use OpenStreetMap, a Google Maps API key is not required.

Support

Need help with CBX Map?


Screenshots
FAQ
ChangeLog