Documentation

Campground Locator documentation

How to set up and use Campground Locator: install, settings, shortcodes and fixes for common problems.

Overview

Campground Locator keeps a directory of campgrounds, shows them on a searchable map, and works out delivery fees from real driving distance.

Where to find it: Campgrounds, in the main WordPress menu.

What you need

  • WordPress 6.2 or newer
  • PHP 7.4 or newer
  • Google Maps keys: a browser key (Maps JavaScript API) with a Map ID, and a server key (Geocoding API and Routes API)
  • Gravity Forms (optional)

Install

  1. With The Vault (easiest): open The Vault in your WordPress menu, find Campground Locator and click Install. It is installed and activated for you.
  2. By hand: buy a license on the plugin page, then go to Plugins → Add New → Upload Plugin, choose the zip and activate it.

Updates arrive automatically from wpwizards.com, like plugins from WordPress.org.

License

This is a premium plugin. Open The Vault → Licenses, paste the key from your order confirmation and click Activate License. WP Wizards clients have every plugin included while their service is active, with no key needed. Without a license the plugin keeps working but stops receiving updates.

Quick start

  1. Run the Setup Wizard. Open Campgrounds → Setup Wizard. It covers your home base, API keys, how delivery fees are worked out, delivery zones, your first campground, branding, the booking button and the locator page.
  2. Add campgrounds. Use Campgrounds → Add Campground. To copy a directory from another site, use Export there and Import here.
  3. Place the locator. Add [campground_locator] to a page. The Dashboard can create a draft page with the shortcode for you.

Delivery fees

Fees are worked out from the driving distance between your home base and the campground using Google’s Routes API, then matched to your mileage rules under Campgrounds → Delivery Settings.

Gravity Forms

Add campground autocomplete to a booking form so customers pick their campground from your directory as they type.

Import and export

Export creates a JSON file of your data. The Import page on another site reads that file (up to 10 MB). Use an unmodified export file.

Settings

Settings tabs

Delivery Mileage rules, zones and fees. Delivery fees stay hidden on the site until you confirm how threshold mileage is charged (in full or only the excess miles).
General Home base and general options.
Maps & APIs Browser key, Map ID and server key, with a connection test for each API.
Design Colors and branding for the map and list.
Booking The Book Your RV button and its URL.
Data Data handling options.

Campground

Status and categories Control what shows publicly and how campgrounds are grouped.
Address and coordinates Coordinates are looked up from the address. Save the campground to keep them.
Google Place ID Optional, links the campground to its Google listing.
Duplicate check Warns when a campground appears to be listed already.
Linked posts Link blog posts to a campground without copying its details.

Shortcodes

[campground_locator]

The public map and list with search and filters.

Attribute Values What it does
map_height number Height of the map in pixels. Default 640.

Place a shortcode in a Divi Text or Code module, a Shortcode block, or a widget.

Troubleshooting and questions

The connection test fails for the browser key.

Check that the key’s website restrictions include this site and that Maps JavaScript API is enabled.

Delivery fees do not show.

Finish the delivery-fee step in the Setup Wizard. Fees stay hidden until that choice is confirmed.

A campground has no pin.

Its coordinates are missing. Open it, look up the coordinates from the address and save.

For developers

ctce_can_display_delivery_fees Filter whether delivery fees are shown.
ctce_campground_post_type_args Filter the campground post type settings.
ctce_capabilities / ctce_role_capabilities Filter the permissions the plugin adds.

Get help

Stuck on something this page does not cover? Contact us and tell us which plugin and version you are on. Need it to do something it does not do yet? We build custom plugins too.