Setup Wizard

The Route Finder Setup Wizard is a comprehensive guide designed to help administrators configure the plugin correctly upon first installation. It provides an intuitive, step-by-step interface to ensure all essential settings are established quickly and easily.

Overview

The wizard automatically detects a first-time installation and will redirect you to the setup page (Routes → Setup) after you activate the plugin. It can be safely re-run at any time from the same location without duplicating settings or pages.

For advanced users, the wizard can be skipped, and all settings can be configured manually via the various sub-menus under the main "Routes" admin menu.

💡 Tip: You can always return to the Setup Wizard by navigating to Routes → Setup in the WordPress admin menu.

The 8-Step Process

The wizard guides you through eight steps, with a progress bar and clear feedback for each action.

Step 1: Import ACF Fields

This is a critical first step. The plugin uses Advanced Custom Fields (ACF) to store all route data. This step imports the necessary field definitions from the plugin's acf.json file, creating the database structure for things like distance, elevation, GPX file links, and destination details.

⚠️ Requirement: You must have Advanced Custom Fields Pro installed and activated before running this step.

Step 2: Apply Default Configuration

This step populates the database with a sensible set of default settings, so the plugin works out-of-the-box. This includes:

Step 3: Map API Configuration (Optional)

This is an informational step that explains the different map providers available (like Thunderforest and Google Maps) and links to the configuration page where you can enter API keys if you choose to use a premium provider. No action is required here to get started, as OpenStreetMap works without any API key.

Available Map Providers

  • OpenStreetMap (default, free) - Works immediately with no configuration
  • Thunderforest - Premium cycling-specific maps (requires API key)
  • Google Maps - Comprehensive mapping (requires API key)
  • HERE Maps - High-quality maps (requires API key)
  • MapTiler - Customisable maps (requires API key)

Step 4: Create Required Pages

The plugin automatically creates two essential pages on your website:

If these pages already exist, the wizard will skip this step to avoid creating duplicates.

Step 5: GPX Folder Setup

This step creates a dedicated folder at /wp-content/uploads/rfcc-gpx/ for storing all your uploaded route files (GPX, KML, TCX, FIT). It sets the correct file permissions and creates a .htaccess file to ensure the files are accessible for download by your visitors.

Step 6: Configure File Upload Types

By default, WordPress does not allow uploading of GPS file formats. This step updates your site's settings to permit the uploading of the following file types through the WordPress Media Library and the plugin's uploaders:

Step 7: Configuration Pages Reference

An informational step that provides a quick-reference guide with links to all the key configuration areas of the plugin:

Step 8: Get Started

The final step provides a launchpad for you to begin using the plugin. It includes:

💡 Spotlight Highlight: The "Add Your First Route" button uses an interactive spotlight feature that darkens the page and highlights the button with an animated arrow and helpful message. This auto-dismisses after 10 seconds, or you can click anywhere or press ESC to close it.

Re-running the Setup Wizard

The wizard can be re-run at any time without causing problems:

  1. Navigate to Routes → Setup in the WordPress admin menu.
  2. Follow the same 8-step process.
  3. Existing settings and pages will not be duplicated - the wizard checks for existing data before creating new entries.

This is safe to run multiple times, for example if you need to re-import ACF fields after a plugin update or want to reset to default configuration.


Troubleshooting

ACF Fields Not Importing

If the ACF import fails:

Pages Not Created

If the required pages fail to create:

GPX Folder Not Writable

This usually indicates a file permission issue on your server:

File Types Not Added

Some hosting providers have strict security policies that prevent modification of allowed file types: