How to integrate an ArcGIS interactive map into a WordPress website

Integrating an ArcGIS interactive map into a WordPress website can be done in several ways depending on your needs—whether you’re using ArcGIS Online, ArcGIS Enterprise, or embedding a custom map application. Here’s a breakdown of the most common and effective methods:


Method 1: Embed an ArcGIS Online Map (Easiest Way)

If your map is hosted on ArcGIS Online:

Steps:

  1. Go to your ArcGIS Online map viewer.
  2. Open your web map or app, click the Share button.
  3. Make sure the map is shared “Everyone (public)” if you want it accessible to all.
  4. Click Embed in Website.
  5. Customize the options (size, tools, etc.).
  6. Copy the iframe embed code.
  7. In WordPress:
    • Go to your page/post.
    • Use the Custom HTML block in the block editor.
    • Paste the embed code.
    • Save and publish.

Good for simple integrations without coding.


Method 2: Use a WordPress Plugin

There are plugins to simplify embedding or integrating ArcGIS content:

  • GeoDirectory – Not ArcGIS specific but helpful for geolocation data.
  • Mapplic – Supports custom maps (not direct ArcGIS but can be used alongside exports).
  • If you have ArcGIS content as WMS/WMTS/WFS layers, you could use Leaflet Map plugins like:

Method 3: Use ArcGIS JavaScript API (Custom Integration)

If you want full control and are embedding a custom web map or app, you can use the ArcGIS JavaScript API.

Steps:

  1. Create a custom HTML/JavaScript map viewer using the ArcGIS JS API.
  2. Host it either on your server or via a public code hosting service (like GitHub Pages).
  3. Use an iframe to embed it into WordPress.
    • OR use the Insert Headers and Footers plugin to include the script and custom container.
<!-- In WordPress Custom HTML block or template -->
<div id="mapDiv" style="height: 500px;"></div>
<script src="https://js.arcgis.com/4.27/"></script>
<script>
  require(["esri/Map", "esri/views/MapView"], function(Map, MapView) {
    const map = new Map({
      basemap: "topo-vector"
    });

    const view = new MapView({
      container: "mapDiv",
      map: map,
      center: [-100.33, 25.69], // lon, lat
      zoom: 10
    });
  });
</script>

Method 4: Embed ArcGIS StoryMaps or Dashboards

  1. Go to your ArcGIS StoryMap or Dashboard.
  2. Share it and get the embed code (iframe).
  3. Paste it into a Custom HTML block in WordPress.

Tips:

  • Make sure any embedded map or app is publicly shared in ArcGIS.
  • Use HTTPS in all URLs to avoid mixed content issues.
  • If using Elementor, you can paste the embed code into an HTML widget.

More Articles
  • A tranquil scene of Canadian Geese flying in formation against a clear sky in Decatur, Alabama.

    How to Migrate a Magento Commerce Website to WordPress and WooCommerce: A Step-by-Step Guide

    If your Magento Commerce website has become expensive to maintain, difficult to customize, or more complex than your business needs, you’re not alone. Many businesses are making the move to WordPress and WooCommerce to reduce costs, simplify website management, and gain greater flexibility for content marketing and SEO. A successful migration requires more than simply…

  • Close-up of a bright yellow disabled symbol on textured asphalt, indicating accessibility.

    Website Accessibility Review Workflow

    Version: 1.0Standard: WCAG 2.2 AAAudience: Web Developers, QA Testers, UI Designers Phase 1 – Automated Accessibility Scan Goal: Find common accessibility issues before manual testing. Checklist ☐ Run an accessibility scan on every page template. ☐ Review all reported errors. ☐ Fix high-impact issues first: ☐ Re-run scan until no critical issues remain. Recommended Tools…

  • accessible parking spot comparing ADA rules to WCAG rules

    What Is the Industry Standard Website Scanner for WCAG Compliance?

    If you’re trying to make your website accessible, one of the first questions you’ll probably ask is: “What’s the industry-standard scanner for WCAG compliance?” The short answer is: there isn’t just one. While several excellent accessibility scanners exist, no automated tool can certify that a website is fully compliant with the Web Content Accessibility Guidelines…