The WordPress Interactive Map Plugin is a custom WordPress plugin that enables administrators to create interactive maps with clickable locations (points and areas). The plugin follows WordPress best practices and integrates seamlessly with the WordPress admin interface, custom post types, REST API, and Gutenberg block editor.
- Copy the plugin folder to
wp-content/plugins/wp-interactive-maps/ - Navigate to WordPress Admin → Plugins
- Activate "WP Interactive Maps"
- Verify that activation completes without errors
- Navigate to WordPress Admin → Interactive Maps → Add New
- Enter a map title (e.g., "Campus Map")
- Add a description in the editor
- Click "Select Map Image" in the Map Details meta box
- Upload or select an existing image (recommended: at least 800x600px)
- Verify that:
- Image preview appears
- Image dimensions are displayed
- "Remove Image" button appears
- Click "Publish"
- Verify the map is saved successfully
- Navigate to WordPress Admin → Interactive Maps → Locations → Add New
- Enter a location title (e.g., "Main Building")
- Add description content in the editor
- In Location Details meta box:
- Select the map created in Test 1
- Select "Place (Point)" as location type
- Enter X coordinate (e.g., 250)
- Enter Y coordinate (e.g., 150)
- Select a marker color using the color picker
- Click "Add Images" and select 1-2 images
- Click "Publish"
- Repeat for 2-3 different locations with different coordinates
- Navigate to WordPress Admin → Interactive Maps → Locations → Add New
- Enter a location title (e.g., "Parking Area")
- Add description content
- In Location Details meta box:
- Select the map from Test 1
- Select "Area (Polygon)" as location type
- Enter polygon points in JSON format:
[[200,150],[250,150],[250,200],[200,200]]
- Select a polygon color
- Add images if desired
- Click "Publish"
- Create 1-2 more area locations
- Create a new Page or Post
- Add the shortcode with your map ID:
(Replace 123 with your actual map ID)
[interactive_map id="123" layout="side"] - Publish the page
- View the page on the frontend
- Verify that:
- Map image displays correctly
- Place markers appear at correct positions
- Area polygons render correctly
- Colors match the settings
- Create a new Page using the Block Editor
- Add a new block and search for "Interactive Map"
- Select the block
- In block settings:
- Select your map from the dropdown
- Choose layout (side or popup)
- Preview or publish the page
- View on frontend
If you encounter any issues during testing:
- Note the exact steps to reproduce
- Check browser console for errors
- Verify WordPress and PHP versions
- Check for plugin conflicts
- Review server error logs
- Document expected vs actual behavior