Skip to content
GPLWP Guides

How to create a car dealer directory in WordPress

Directories & ListingsWordPress Time About 2 hours for a basic manual build, or 30–45 minutes with a specialist plugin 6 steps Updated 1 Sep 2026

The short answer

You can build a basic car dealer directory with WordPress custom post types, fields and taxonomies, but native WordPress does not provide vehicle filters, map search or front-end submissions. For a working automotive directory, use a specialist plugin after planning the data structure.

The route
  1. 01Plan the directory data
  2. 02Create vehicle content types
  3. 03Add fields and classifications
  4. 04Enter vehicles and dealers
  5. 05Build the directory interface
  6. 06Test enquiries and publishing

What you need

  • A self-hosted WordPress site with administrator access
  • A list of dealerships, vehicles and vehicle specifications
  • A consistent set of vehicle photos and location details
  • A Google Maps project if you want Google-powered maps

Plan the directory data

Decide whether the site will list dealerships, vehicles, or both. For a multi-dealer directory, create a separate record for each dealership and connect each vehicle to its dealer. For one dealership, a vehicle directory alone may be enough.

Write down the fields before building: make, model, year, condition, price, mileage, fuel type, transmission, body type, VIN, stock number, location, description, photos and enquiry details. Use fields for values visitors may filter, and categories or taxonomies for values you want to group.

Create vehicle content types

For the manual route, register a public custom post type for vehicles and, if needed, another for dealerships. WordPress documentation recommends placing custom post types in a plugin rather than a theme so the content remains available if the theme changes. The standard development functions for this are register_post_type() and register_taxonomy().

Give the vehicle type an archive and readable URL structure. After changing the post type or rewrite settings, visit Settings > Permalinks and save the settings to refresh the site's rewrite rules. If you skip this, vehicle URLs can return 404 errors.

Add fields and classifications

Add custom fields for year, price, mileage, engine size, fuel type, transmission, stock number and VIN. Add taxonomies for make, model, body type, condition and location where visitors need grouped or filterable values. A directory structure normally consists of a custom post type, custom fields and taxonomies.

Keep values consistent. Do not enter Automatic, auto and automatic transmission as separate values, and store prices and mileage as numbers where your filtering system supports numeric queries. Otherwise price ranges and sorting may give incomplete results.

Enter vehicles and dealers

Create one dealership record for every dealer, then add each vehicle as its own entry. Attach the correct dealer, make, model and location, and mark sold or withdrawn vehicles clearly rather than deleting them immediately if you need historical URLs or reports.

Upload several useful photographs per vehicle, including exterior, interior, mileage and damage where relevant. WordPress creates image sizes during upload and lets you control common sizes under Settings > Media; avoid using unnecessarily large originals in listing cards.

Build the directory interface

Create a vehicle archive or directory page with a search field, listing cards, pagination and a single-vehicle page. Add filters for make, model, price, year, mileage, condition, body type, fuel type, transmission and location. A simple manual build can display records with a custom query, but AJAX filtering, numeric ranges, radius search and front-end submissions usually require additional development or a directory plugin.

Add a map only after every location has been checked. Google Maps requires an API key, and Google recommends restricting keys by website and API to reduce unauthorised use and unexpected charges.

Test enquiries and publishing

Test the directory as an administrator and as a visitor. Check that filters return the right vehicles, sold vehicles are handled correctly, dealer links work, map markers point to the right locations, images crop acceptably on mobile and enquiry forms deliver to the intended inbox.

For paid submissions, add payment only after the listing workflow works without it. A specialist automotive directory plugin is the fast route when you need vehicle inventory, filters, maps, enquiries and dealership payments in one system. Vehica Car Dealer and Automotive Directory is designed for those requirements, so it is a better fit than a generic directory tool when the records are vehicles rather than ordinary businesses.

The fast route

Let Vehica Car Dealer and Automotive Directory do it

Vehicle inventory, filters, maps, inquiries, and payments for dealerships; choose it over a generic directory tool for automotive listings.

Get Vehica Car Dealer and Automotive Directory

Sources

  1. developer.wordpress.org /reference/functions/register_post_type/?utm_source=openai
  2. toolset.com /course-chapter/setting-up-custom-post-types-fields-and-taxo…
  3. wordpress.org /documentation/article/settings-media-screen/?utm_source=ope…
  4. developers.google.com /maps/api-security-best-practices?utm_source=openai

Questions

Can I create a car directory with WordPress alone?
WordPress alone can store pages and posts, but it does not provide a proper vehicle inventory with custom fields, advanced filters, map search or front-end dealer submissions. You can build those parts with custom development and a site-specific plugin, but a specialist directory plugin is usually more practical once the directory has multiple vehicle attributes or dealerships.
Should cars and dealerships be separate post types?
Use separate post types when the site lists multiple dealerships or needs dealer profile pages. A vehicle record can then be connected to one dealership, while the dealership record stores its address, phone number, opening hours and enquiry details. For a single dealer with one inventory, using only a vehicle post type may keep the setup simpler.
Which vehicle details should be filterable?
Make, model, price, year, mileage, condition, body type, fuel type, transmission and location are the usual starting filters. Make filterable values consistent and store price, year and mileage as numbers where possible. If values are entered as free text, visitors may see incomplete results because small spelling or formatting differences create separate values.
Why are my vehicle or dealer URLs showing 404 errors?
404 errors commonly appear after registering a custom post type or changing its URL slug without refreshing rewrite rules. Go to Settings > Permalinks and save the current settings, then clear any page or object cache and test the archive and individual listing URLs again. Also check that the post type is public and has an archive enabled.
Do I need Google Maps for a car dealer directory?
No, a directory can show addresses as text or use another mapping service. If you use Google Maps, create and restrict the required API key, enable only the services your map feature needs and test the map on the live domain. An unrestricted or incorrectly restricted key can make markers fail or expose the site to unwanted API use.