Understanding Places, Categories, Listings and Custom Post Types

Introduction

Once you installed your GD directory plugin, you will need to create categories before you can add any listings to your directory.

The free GD plugin will automatically create a new custom type of WordPress posts, which allows you to add content to your directory. The GD plugin calls these custom posts Places, and you will find them in the main WP admin menu.
core-places
In the GeoDirectory context, these posts are called listings.

Every listing will need to be in a category, or the listing will not be added to the GD maps.

GD will work with one level of sub-category as well:

Places > Category > Sub-category > Listing

Examples using GD core

One example is a local directory, and this could be your setup:

CategorySub-categoryListingORCategoryListings
RestaurantsFrenchL’escargotRestaurantsL’escargot
La BaguetteLa Baguette
ItalianMarioMario
The Pizza DudeThe Pizza Dude
AccommodationHotelsThe Sleep InnAccommodationThe Sleep Inn
The RichThe Rich
Bed and BreakfastChez NousChez Nous
The RoosterThe Rooster

Extending your directory

The above examples are based an the standard free GD plugin installation: All your listings and categories will need to be of the same custom post type Places.

Custom Post Types Addon

The Custom Post Types Addon (CPT) lets you add as many CPTs as you need.

As standard, GeoDirectory comes with one CPT called Places (see above), new CPTs will have their own dedicated sidebar menu and management system just like Places.

ctp

Why and when to use Custom Post Types?

The advantages of this plugin are that instead of trying to manage a large diverse directory with many categories all under the one post type, you can split these into more manageable CPTs.

Factors worth considering whether you want to organise your site with different CPTs:

  • you can add different custom fields to each Custom Post Type
  • it is easier to manage different pricing levels with CPTs than categories
  • a listing can only be submitted to one CPT at the time, but it is possible to submit the same listing to more than one category
  • Some widgets can only be filtered on one CPT at the time.
  • Maps can only show one CPT at the time but can show multiple categories at the same time.

Events Addon

The Events Addon is a custom post type specifically designed for the way events are prioritized by dates.

With this plugin you can let users add their events to your site. Events are ordered by upcoming date by default. Users can enter recurring dates for their events instead of having to create lots of separate events. As this is also a custom post type you have the usual ability to add custom fields and sort options.

Examples using CTP and Events addons

CTPCategorySub-categoryListing
EnjoyRestaurantsFrenchL’escargot
La Baguette
ItalianMario
The Pizza Dude
AccommodationHotelsThe Sleep Inn
The Rich
Bed and BreakfastChez Nous
The Rooster
EventsMarketsWeekly Farmers Market
Antiques Show
MusicConcertsMilli Vanilla
Elvis Presley Live
LessonsBagpipe School
LocalHealthDoctorsDoctors R Us
Fitness CentresFitness4U
BuildingHardwareNuts&Bolts
CarpentersWe’ll Nail You