Customizing GeoDirectory templates

Your GeoDirectory site uses a number of special templates to create your map pages, category pages, detail pages etc.

You can find the default templates at /wp-content/plugins/geodirectory/geodirectory-templates.

We provide many hooks and filters that can provide lots of customization options without having to replace templates (this is the preferred way) but If you want to customize them in any way, just follow these steps:

  1. The default templates at /wp-content/plugins/geodirectory/geodirectory-templates.
  2. Navigate to your child theme.
  3. Create a folder in your active child theme folder called geodirectory. 
  4. Find the template you want to customize.
  5. And copy that template to the geodirectory folder in your active child theme.
  6. You can then change the original templates and insert any code needed to adapt the templates for your site or theme.
  7. By creating a copy of the template to your child theme, you will preserve all your changes when the plugin needs upgrading.

 

The two files login_frm.php and reg_frm.php are called in the template geodir-signup.php, you can replace this template but there are easier ways , adding the code below to your child theme functions.php will then allow you to replace those two files as the same way as all the others via the above method.

Advanced Search Filters Addon – Search By Distance

When you activate the Advanced Search Filters Addon, the Search By Distance field will automatically be added to the fields you can add to your custom search.

When you click on Field: Search by Distance, you’ll see the following options:

Options

Maximum Search Range

Enter the maximum radius of the search zone you want to create, for example if you want your visitors to search any listing within 50 miles or kilometers from the current location, then you would enter 50.

You have to set your choice of miles or kilometers at
WP admin > GeoDirectory > General > Search > Show search distances in miles or km

Difference in Search Range

Here you decide how many different search radii you make available to your visitors.

If you enter a fifth of the Maximum Search Range, there will be 5 options; if you enter half of the Maximum Search Range, then there will be 2 options.

Expand Search Range

If you leave this blank, then all options as per Difference in Search Range will be shown.

Entering a  number lower than the number of options as per Difference in Search Range will only show that lower number of options, and will add a More link to expand the options so all will be shown.

Show distance sorting:

Tick this if you want your visitors to be able to sort the search results in order of distance, either ascending or descending.

You will also need to provide text for the ascending or descending options.

Frontend title

This will be shown as the heading of the Search By Distance filter.

Frontend description

Optional description shown below to give your visitors tips about how to use the filter.

Examples

Example 1: all options

The following example illustrates all the options:

  1. The search will search all relevant listings within a maximum 100 km radius (Maximum Search Range = 100)
  2. Visitors will be able to choose a smaller radius than 100km, in 20 km increments (Difference in Search Range = 20)
  3. Visitors will initially have 4 options to choose from (Expand Search Range = 4)
  4. Visitors will be able to order the search results by closest or furthest away (Show distance sorting = checked)
  5. The first image is how the search will initially show: Our heading and 4 options
  6. The second image shows what happens if the visitor clicked on More; all the options would be revealed
  7. The third image shows how the visitor can choose to order by closest or furthest away

Example 2: minimal options

  1. Visitors will only have two options because the Difference in Search Range is half of the maximum radius
  2. No other options will be available to the visitor

Advanced Search Filters Addon – Overview

On this page

Introduction – Installation – Configuration (search autocompleter settings – near autocompleter settings – redirect settings on first time loadgeolocation settings)

Introduction

This addon extends the default GeoDirectory search widget by letting you filter search results by certain custom fields you may have added to your listings.

For example, if you had added a custom select field Pet Friendly you could then filter results that only include pet friendly listings, this could be useful for hotels, café’s, bars etc.

You can also filter by multiple values, you could set up your directory so you could search for Pet Friendly, F” listings within 10 miles of the location you enter in the Near field.

This plugin also integrates well with our GeoDirectory Custom Post Types plugin to allow you to add different filter options per post type and also search per post type.

Installation

Installation is done by uploading the ZIP file in the plugin section of your WordPress admin area.
Installing GD Addons

Configuration

Once you activated the Advanced Search Filters addon, you will get a new set of settings in the GD admin panel:

SEARCH AUTOCOMPLETER SETTINGS

Enable Search autocompleter: This setting will start giving suggestions as your visitor start searching:

Autosubmit the form on select a Search option: If this option is selected, the search form will automatically load the detail page of the listing selected.

Min chars needed to trigger autocomplete: Enter a number of characters here before the autocompleter search is triggered.

Max Results to be returned by autocomplete: Enter a number here to limit the number of listings presented by the autocompleter.

NEAR AUTOCOMPLETER SETTINGS

This setting will only be here if you have the Location Manager addon activated.

Enable Near autocompleter: This setting will start giving suggestions as your visitor start searching:

Autosubmit the form on select a Search option: If this option is selected, the search form will automatically load the detail page of the listing selected.

REDIRECT SETTINGS ON FIRST TIME LOAD

This setting will only be here if you have the Location Manager addon activated.

You will need to have a secure site – HTTPS – with a SSL certificate installed for geolocation and redirection to work in all browsers and devices.

There are 3 options:

  1. No redirect: You guessed right, no redirection
  2. Redirect to nearest location (on first time load users will be auto geolocated and redirected to nearest geolocation found): With this option,
    1. the system will try to locate where the visitor is located
    2. if there are listings within the set search radius, a page will be served with those listings and the location of the visitor
    3. if there are no listings close to the visitor, then the system will look in your database to determine what the closest location is to the visitor
    4. and then serve the location page for that location.
    5. Example:
      1. There are only 2 locations in your database: New York City and Los Angeles.
      2. A visitor who is in San Francisco visits your website.
      3. The system will redirect to yoursite.com/location/united-states/california/los-angeles
  3. Redirect to default location (on first time load users will be redirected to default location: This setting will redirect your visitors on first entry to the location page of your default location.
    Using the example just above, if New York City is your default location, any visitors landing on your site will be redirected to yoursite.com/location/united-states/new-york/new-york-city.

GEOLOCATION SETTINGS

You will need to have a secure site – HTTPS – with a SSL certificate installed for geolocation and redirection to work in all browsers and devices.

Default Near Me miles limit (1-200): 

Choose miles or kilometers at GD > General > Search

Dos and Don’ts

This table lists some important things you should never do, and some things you definitely should do.

It is a good checklist to make sure you don’t break your site, and that you get the most out of your setup.

Don't Do NOT do this ! Do Do this
Page caching plugins do not work well with GD, GD creates page dynamically. GD Booster is specifically designed to cache GD pages and your normal WordPress pages. Another option is to use WP Super CacheREAD MORE Allow Anyone to register READ MORE
When adding a location or address, DO NOT change the lat and lng coordinates automatically created below the map after you click Set address on map Set WordPress permalinks to use Postnames READ MORE
Do NOT install and activate the BuddyPress Integration or the AffiliateWP Integration addons without installing the BuddyPress or AffiliateWP plugins themselves first. Tick Organize my uploads into month- and year-based folders in the WordPress Media settings READ MORE
Do NOT delete a location in the list of locations at Multilocations, because that will also delete any listings in that location! READ MORE Create at least one category for your Custom Post Types like Places or Events, AND each listing has to be in at least one category, or your listings will not show on the frontend of your site READ MORE
Do NOT use any parent page for any of the GD pages. READ MORE Backup your database and files before trying customizations. You will be able to restore your site if you break something.
Do NOT import CSV files with post IDs unless you want to over-write/update existing listings. If you add post IDs that refer to an existing WP page or WP post, or another GD listing, they will be over-written.  READ MORE If using GD for the homepage of your site, make sure to set WP Admin > Settings > Reading > Front page displays > Your latest posts > YES.
When using the MultiLocation addon, make sure to enable the location switcher at GD > Multilocations > Location Settings tab > Main navigation settings.

GeoDirectory Core Widgets

When you install the GeoDirectory plugin, you’ll find a number of new GD widgets in the appearance section of your WP admin area.

Widget name Can be used on these pages:
Home Listings Search Detail Author Non-GD pages
GD Core widgets
GD > Advertise yes yes yes yes yes yes
GD > Best of widget yes yes yes yes yes
GD > CPT Categories yes yes yes yes yes yes
GD > CPT Listings yes yes yes yes yes yes
GD > Features yes yes yes yes yes yes
GD > Flickr Photos yes yes yes yes yes yes
GD > GMap Home page yes yes
GD > GMap Listing page yes yes yes yes yes
GD > Listing Slider yes yes yes yes yes yes
GD > Loginbox yes yes yes yes yes yes
GD > Popular Post Category yes yes yes yes yes yes
GD > Popular Post View yes yes yes yes yes yes
GD > Recent Reviews yes yes yes yes yes yes
GD > Related Listing yes yes
GD > Search yes yes yes yes yes yes
GD > Social Like yes yes yes yes yes yes
GD > Twitter yes yes yes yes yes yes
Events addon only widgets
GD > Related Events Listing yes
Location Manager addon only widgets
GD > Popular Location yes yes yes yes

GD > Advertise widget

  1. This widget can be added to any section of a GD page or a non-GD page.
  2. You could use this widget for example to add your AdSense code to the pages and sections of your choice.
  3. You can also use this widget for any other text or code you’d like to add to your pages.

GD > Best of widget

  1. This widget can be added to a certain section of a GD page or a non-GD page.
  2. This widget will create tabs that display a certain amount of listings, according to the categories.
  3. Choose the number posts and categories to display.
  4. Limit your excerpt character count.
  5. Choose tab layout type.
  6. Choose excerpt type.
  7. Enable location filter.

Note : Listings would be sorted by ratings and if there are no ratings on the listings, it would be sorted randomly.

best-of-cpt-2

GD > CPT Categories widget

  1. This widget will add a list of categories to your pages:
  2. This widget can also be added using the [gd_cpt_categories] shortcode.

Options

  1. Title: Enter any title – if left blank, then there will be no title
  2. Select CPT: Select all CPTs, or select one or more by CTRL + click
  3. Hide empty categories: Tick this to hide links to categories without any listings
  4. Show category count: This will show the number of listings in the linked category 
  5. Hide category icon: Tick this to only use text for the link to the categories
  6. Show CPT on same line: By default category blocks for CPTs will be placed below each other, but if you tick this option, they will be shown next to each other.
    1. Example of CPT category blocks next to each other
    2. Example of default setting (look in sidebar)
  7. Sort by: Choose alphabetic or most popular (categories with most listings first)
  8. Max number of sub-categories: If you have sub-categories, select the maximum number of sub-categories that will be listed
  9. Show max sub-categories depth: If you use sub-categories and sub-sub-categories, you can select to what level of sub-category you want to link
  10. Don’t filter for current viewing post type: By default, the CPT Categories widget only shows links to the categories of the current CPT, so tick this if you always want the widget to show all CPTs
  11. Don’t filter for current viewing category:

GD > CPT Listing widget

  1. This widget will list the CPT images with links.
    cpt_listing
  2. Navigate to GD > Custom Post Types > Edit(CPT) > Post Type > Upload Default Image
    upload_listing

GD > Features

  1. This widget can be added to any section of a GD page or a non-GD page.
  2. This widget will allow you to create blocks that displays an icon, title and description.

block-image

GD >  Flickr Photos widget

  1. Designed to be used in a sidebar of any of your pages, but can also be used anywhere else on your site.
  2. You will need the Flickr ID number for the Flickr user or group whose images you want to use: just follow the link in the widget and follow the instructions there.
  3. Choose the number of images you want to display.

GD > GMap – Home Page

This will show you google map V3 for Home page with category checkbox selection.

googlemap

GD > GMap Listing page

This widget can be added to any section of a GD page except the GD Home template.

A map will be added where you added the widget, and will automatically be populated by relevant listings:

Listings page: filtered by the location, custom post type and category the visitor has browsed to
Search page: depending on the search performed
Detail page: only adds the location of the particular listing
Author page: filtered by listings submitted or claimed by the user, or by listings added by the user as favorites

Settings

Map Width: Enter a width as a percentage or pixels, for example
if you add the widget to a content section, enter 100%, and
if you add the widget to a sidebar, enter the required width in pixels, for example 298
Map Height: Enter a height in pixels, or leave blank for the default height
Map Zoom Level: Choose a map zoom level:
1 will show the whole world and 19 will zoom in as far as possible
Note 1: This setting is overwritten if you use Auto Zoom
Note 2: It is recommended to use a zoom level of about 10 if you use the widget on a Detail page
Map Auto Zoom: If you tick this box, then the map will automatically zoom to a level that shows all listings
Note: Not recommended if yo use the widget on a Detail page
Map Sticky: If you use the widget in a sidebar, this setting will make sure that the map stays visible even if a visitor browses lower than the map.
This is handy on a Listings or Search page, because it allows visitors to pinpoint the location of a listing even when there are lots of listings shown on the one page.
Mouse Scroll: Allows visitors to use their mouse to zoom in or out, rather than being restricted by the map control

GD > Listing Slider

This widget will add a slider of selected listings to any of your GD pages, and can also be used on any non-GD page.
You can only use one Listing Slider per page!
This widget is designed to be used in content sections or full-width sections, it does not work well in sidebars or columns with limited width.
Only listings with images will be shown.

GD > Login Box

This widget will add a login box to any of your GD pages, and can also be used on any non-GD page.
This is how it would look like.
loginbox

GD > Popular Post Category widget

Popular Post Category

GD > Popular Post View widget

This widget can be used in Content and Sidebar sections, as well as non-GD pages.

You can also add this widget using a shortcode.

Settings

Most of the settings are straight forward, but note the following:

Title: This will be used for the heading of the widget.
You can use %posttype_singular_label% or %posttype_plural_label% here.
This is especially useful if you also use the Use current viewing post type setting (see below); in that case the heading will adapt to the post name of your Custom Post Type a visitor is viewing.
For example New %posttype_plural_label% would show as New Places on any Place category page, and as New Events on any Event category page.
Listing width: Although this normally can be left empty, this setting allows you to tweak the automatic width of the listing.
For example, if you choose a Two Column Grid View, your listings will be 50% wide.
Entering 48 into this field will adjust the width if necessary to 48%.
Note: Do not enter % as part of this setting, that will confuse some browsers.
Post Content excerpt character count: Set this to the number of characters you want to show as part of the listing.
Note: By default, excerpts will only be shown for List View and Two Column Grid View. But excerpts can be shown for all Grid Views by adding this to your CSS:
.geodir_category_list_view li.geodir-gridview .geodir-content .geodir-entry-content {display: inline;}
Enable Location Filter: If you tick this box, then any listings shown will be filtered by the location chosen by your visitors.
Use current viewing post type: If you choose this setting, then the listings displayed will be from the same Custom Post Type as the page the visitor is viewing.
See also the Title setting above.
Note: This setting only applies if you add the widget to the GD Listings page.
Hide if no posts: This setting will hide the widget completely if there are no listings returned for your parameters.
So instead of saying that no records are found, the widget will just not be displayed.

This widget is automatically added to your GD Search page and the GD Listings pages. Review how to adjust the display of these pages here.

GD > Recent Reviews

This widget will add a Recent Review section to any of your GD pages, and can also be used on any non-GD page.
You can limit the number of reviews to display by inserting a value inside the widget options
This is how it would look like.

review

GD > Related Listing

GD > Social Like

  1. This widget has no settings and can be added to any page of your website.
  2. It will allow your visitors to share the page on their Twitter, Facebook or Google+ pages.
  3. This is how the widget looks like:

GD > Search

  1. This widget can be added to any page of your website.
  2. You can also add this widget using a shortcode.
  3. There are no settings unless you have the Advanced Search addon activated. The following options can then be selected:
    1. Default: Custom search options will become available when your visitors click on the Customize Search button
    2. Open when searched: This setting will show the custom search open when your visitors access your GD Search page, but not on other pages
    3. Always open: the advanced search options will be available without your visitors having to click on the Customize Search button
  4. To better understand the GD Search, review this documentation:
    1. Understanding navigation, searching and browsing …
    2. The GD Search explained

GD > Twitter

  1. With this widget you can embed a variety of Twitter feeds or widgets on your website.
  2. In your Twitter account, go to Settings > Widgets and create a widget or copy one of the codes.
  3. Paste the code in the GD > Twitter widget.

GD > Related Events Listing

Settings

This Events widget is specifically for the detail pages of your listings, and will show the events that have been submitted for a particular place.

The widget will only work on the default custom post type Places; it will not show on any other custom post type detail pages.

Most of the settings are self-explaining, and are the same as some of the settings of the Popular Post View widget, with one main difference:

Enable Location Filter: You can show events at a listing automatically on the detail page of that listing if you have both the Prices Manager Addon and Events Addon enabled. Just follow these steps:

  1. In the Prices and Payment settings, set Link business to Yes in the Events pricing.
  2. Add the Related Events Listing widget to the detail page, and enable the Location Filter
  3. Now if the same user adds an event and chooses one of the listings from the Fill in Business Details menu, that event will automatically be listed on the detail page for the listing.

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:

Category Sub-category Listing OR Category Listings
Restaurants French L’escargot Restaurants L’escargot
La Baguette La Baguette
Italian Mario Mario
The Pizza Dude The Pizza Dude
Accommodation Hotels The Sleep Inn Accommodation The Sleep Inn
The Rich The Rich
Bed and Breakfast Chez Nous Chez Nous
The Rooster The 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

CTP Category Sub-category Listing
Enjoy Restaurants French L’escargot
La Baguette
Italian Mario
The Pizza Dude
Accommodation Hotels The Sleep Inn
The Rich
Bed and Breakfast Chez Nous
The Rooster
Events Markets Weekly Farmers Market
Antiques Show
Music Concerts Milli Vanilla
Elvis Presley Live
Lessons Bagpipe School
Local Health Doctors Doctors R Us
Fitness Centres Fitness4U
Building Hardware Nuts&Bolts
Carpenters We’ll Nail You

Translating Addons

Translating Addons is much the same as translating core with one exception, the file names differ.
Please see the translating core docs and then when saving your .mo files please see the reference guide below for file names.

You can find some ready made translations in our languages project, find out more here.

Addon name .mo location path (text domain)
CORE /wp-content/languages/plugins/geodirectory-en_US.mo
Advance Search Filters /wp-content/languages/plugins/geodiradvancesearch-en_US.mo
Ajax Duplicate Alert /wp-content/languages/plugins/geodir_duplicatealert-en_US.mo
Autocompleter /wp-content/languages/plugins/geodir_autocompleter-en_US.mo
(Deprecated from core version 1.3 – merged with Advance Search Filters)
BuddyPress Compliments /wp-content/languages/plugins/bp-compliments-en_US.mo
BuddyPress Integration /wp-content/languages/plugins/gdbuddypress-en_US.mo
Claim Listing /wp-content/languages/plugins/geodirclaim-en_US.mo
Custom Google Maps /wp-content/languages/plugins/geodir_customgmaps-en_US.mo
Custom Post Types /wp-content/languages/plugins/geodir_custom_posts-en_US.mo
Event Manager /wp-content/languages/plugins/geodirevents-en_US.mo
Franchise Manager /wp-content/languages/plugins/geodir-franchise-en_US.mo
Location Manager /wp-content/languages/plugins/geodirlocation-en_US.mo
Markercluster /wp-content/languages/plugins/geodir_markercluster-en_US.mo
Payment Manager /wp-content/languages/plugins/geodir_payments-en_US.mo
Review Rating Manager /wp-content/languages/plugins/geodir_reviewratings-en_US.mo
SagePay Payment Gateway /wp-content/languages/plugins/geodir_sagepay-en_US.mo
Social Importer /wp-content/languages/plugins/geodir_socialimporter-en_US.mo

Translate Core

Introduction Translation process More information

Introduction

  1. All our plugins and themes are in English by default, but all of them come with .po files.
  2. .po files are the standard way WordPress themes and plugins are translated, or the files can just be used to change the wording used by default for English language sites.
  3. There are many programs you can use to edit these .po language files but we recommend using Poedit.
  4. Translation programs like Poedit create a matching .mo file when a .po file is translated.
  5. It is those .mo files that contain the translated language strings to show the translations on your site.
  6. You can find some ready made translations in our languages project, find out more here.

Translation process

We will translate the core GD plugin here, but the process is the same for all plugins and addons.

Translating themes also follows the same process except for the location where you should upload the .mo file.

  1. Download POedit and install the program on your local machine (you only need the free version, but the paid version will assist translations with suggestions).
  2. Using FTP or your host’s control panel, download the plugins default .po file to your local machine:
  3. Open the Poedit program and select Create new translation:
  4. Navigate to the .po file you downloaded at step 2, and open the file:
  5. Poedit will ask you to select the new language:
  6. Make sure to select exactly the same language you have at WP > Settings > General:
  7. Now save the file:
    1. Poedit will give you the correct extension, in our example that will be nl_BE.po.
    2. Make sure that the rest of the filename saved is the same as the original .po file, in our example that will be geodirectory-nl_BE.po.
    3. You will need to upload the newly created files to /wp-content/languages/plugins/ on your server, so we suggest you save it to a copy of the same folder on your local machine to make
    4. You will see that Poedit creates 2 files: geodirectory-nl_BE.po and geodirectory-nl_BE.mo
  8. Now translate any language string you want, and save the file once finished:
  9. When you are ready, upload both the .mo and .po file to the /wp-content/languages/plugins/ folder on the server.
    Create the folder if it does not exist yet:
  10. Go to your website and refresh to see your changes 🙂

More information

  1. Translation FAQs.
  2. You can find some ready made translations in our languages project, find out more here.
  3. Translating themes.
  4. Translating GD addons.

Understanding GeoDirectory pages and layout

On this page:

  1. Introduction
  2. Directory pages
  3. Directory management pages
  4. Other GD pages

Introduction

  1. When you activate GD on your site, GD will create some extra pages. These are listed below.
  2. In the Pages section of your WP admin dashboard, you can change the title and the slug of the page. Also, do not move the pages under a parent!
  3. GD Page content is provided by GeoDirectory. Any content added to body of these pages will be ignored by GeoDirectory.
  4. Generally, the public directory pages can be modified by firstly selecting which sections you want to use, and then by adding widgets to those sections.

Directory pages:

  1. GD Home page – for all locations
  2. GD Search
  3. GD Detail – for each individual listing
  4. GD Author page – where the user can find links to edit their listings etc

Directory management pages:

  1. Add Listing – to add all types of listings
  2. Listing Preview – to check submission before paying and/or publishing
  3. GD Checkout – used with Payments Manager only
  4. Listing Success – shown on completion of the submission process
  5. GD Info
  6. Manage Invoices – page where your users can review their payments

Other GD pages:

  1. GD Login

Directory pages

Here are links to more details of the different templates further down the page:
Home  |  Listings  |  Search | Detail  |  Author

Typical layout

  1. Below is a standard layout of a WordPress site, using the GeoDirectory plugin.
  2. All the GD directory pages are based on this layout.
  3. The default Design settings only use the GD Right Section and not the GD Left Section, because that is the most common layout.
  4. Also, the GD Bottom Section is not enabled by default, although this section allows you to add content to the bottom of your GD pages you maybe do not want in the footer section of your non-GD pages.
  5. You can adjust the settings for these by going to WP Admin > GeoDirectory > Design and this article details the settings.
Header section
Part of your theme: logo, header menu etc
GD Top section
Use GD widgets here like map, popular categories etc
GD Left section
Used for sidebar widgets
GD Content section
This content will vary depending on whether this is your GD home page, GD Listings page, GD Detail page or GD Search page
GD Right section
Used for sidebar widgets
GD Bottom section
Footer section
Part of your theme: footer menus, copyright text etc

GD Home page

  1. This is the home page for your GeoDirectory. You tell GeoDirectory which page is the GD Home at GD > Permalinks > GD Home.
  2. Some GeoDirectory themes with links to “home” will redirect users to this page, even if it is not set as your WordPress static home page.
  3. You can set WordPress > Reading > Static Front Page to this same page, if you want your GeoDirectory page to also be the front page of your site. You can also use a different pages for your WordPress Front Page and the GD Home. Some members choose to use different pages so they can create a customized Front Page with a builder and add specific widgets or shortcodes that are not display on the GD Home and Location pages.
  4. See the basic installation documentation about setup.
  5. The GD Home page is a WordPress page, but any content added to the page content area is ignored by GeoDirectory. To add content to GD Home, you will need to add Widgets at WP > Appearance > Widgets.
  6. GD Home is also the template used for each of the locations in your GD installation (including countries, regions and cities).
  7. Normally, you’d want the map in the top section, as you see at the GD demo.
  8. Without the Location Manager addon, you will only have one location.

Examples:

  • yoursite.com/location will show all listings
  • yoursite.com/location/belgium will show all listings in Belgium
  • yoursite.com/location/united-kingdon/greater-london will show all listings in Greater London
  • yoursite.com/location/italy/lombardia/milano will show all listings in Milan

GD Home

Location Page Layout Options (using the GD Home Template)

  1. The location page is used to display listings for each location.
  2. Each location, whether it is a country, region, city or neighborhood will display using the location page.
  3. GD Home is actually the location “everywhere” and so sorts and shows all the listings.
  4. The Location page uses the same widget settings as the GD Home Page. When you add widgets to your home page, they will also be displayed on the Location page.
  5. With the Location Manager Addon you can add the Popular Locations shortcodes for displaying a list of your locations to drive visitors to location pages. You can also create direct links manually for special menus, add the Location Switcher widget, or the Location Switcher Menu.
  6. When you add widgets or shortcodes to your Home/Location page, you should consider checking “filter results for location” when available, so only the listings for the particular location will be shown.”
  7. Read more about Location Manager Shortcodes

GD Listings page

  1. This is the template that will display a list of all listings in a particular category or custom post type, and will show different listings depending on location and category requested.

Examples:

  • yoursite.com/attractions will show all listed attractions
  • yoursite.com/hotels/finland will show all listed hotels in Finland

GD Search page

  1. You guessed it, this is the page displaying the result of a GD search.

GD Detail page

  1. The detail template is used to display all the detail of each of your listings.
  2. It will display all the information one of your users has submitted about their place, business, organisation or event etc.

GD Author page

  1. This is the page displaying content specific to your users when they are logged in; it is your users’ dashboard.
  2. It will list their favorite listings and/or events, and the listings they have submitted themselves.

Keep reading here to find more detail on the settings

Directory management pages

Add Listing

  1. This page is only available to registered users.
  2. Different Add Listing pages will be created for each Custom Post Type.
  3. You can also create this page with shortcodes.

Listing Preview

  1. Once a user has entered all data, this page allows for a review, and for changes to be made if required.

GD Checkout

  1. If charging a fee for submissions using the Payments Manager, the user will be taken to this page once they reviewed their submitted data.
  2. For free listings, this page gets by-passed.

Listing Success

  1. This is the last page in the free submission process, and provides a link to the newly created listing.

GD Info

  1. This page is used to display messages like payment received etc.
  2. For paid listings, it will display payment received details etc, and provide a link to the newly created listing.

Manage Invoices

  1. This page lists all invoices of a user if you are using the Payments Manager.
  2. This page uses the GD Author right sidebar.
  3. Example:

Other GD pages

GD Login

  1. This is used for both registration and login in a default setup.
  2. If using the Buddypress registration, it will only be used for login.

GD Core Plugin – Place Settings

These are the sections you will find when you install the GeoDirectory Core (free) plugin only:

OverviewGeneral – Google AnalyticsDesignPermalinksNotificationsSet Default LocationPlace Settings – Theme Compatibility – Import & ExportGD Tools

GeoDirectory > Place Settings

This part of the documentation explains the GD options at GeoDirectory > Place Settings

Further below is an image showing where to find the options, and this table links you to the details for each option:

General
Custom Fields Common settings for Custom Fields – FieldsetTextMulti SelectSelect – Textarea – Checkbox – Radio – URL – File Upload – DateTimePhoneEmailHTML
Sorting Options

General

  1. Places is the name of the default Custom Post Type (CPT) installed as part of the GD core installation.
  2. It is like the top category for listings in your GD directory.
  3. The information on this page is also relevant for any other CPT you install when you use the Custom Post Types add-on or the Events add-on.

Custom Fields

  1. When you go to GD > Place Settings, you will see a tab with Custom Fields.
  2. You will see a number of default custom fields already, like Category, Address, Website etc.
  3. You can add also your own fields, by choosing from the list of available types on the left hand side.

Common settings for Custom Fields

Admin title This title is only used to give a name to the Custom Field in the Custom Field settings area.
Frontend title This title is used on both the submission form and on the page where you choose the field to be displayed.
Frontend description Will be used on the submission form only, to help your users understand the information required.
HTML variable name Only used to create the custom field in your database.
Do not use spaces or special characters for this!
Is active Turns the field on or off across your site.
For Admin use only? Choosing YES here, will not allow your users to edit the field; only administrators will be able to edit this field.
This option is only available for custom fields you create yourself, not for the default GD fields.
Default value A value used if the user does not enter anything.
Only relevant for some Custom Field types.
Show in what locations? Options here include:

  1. Details page sidebar: Adds it to the sidebar of the detail page of the listing
  2. More info tab: Adds the custom field to the “More info” tab
  3. Listings page: Adds the custom field to the listing display on the listings page (category page) and the search pages, and the Popular Post widgets.
  4. Details page own tab: Selecting this for a fieldset will create a new tab, selecting this for a custom field will show the custom field under the fieldset with the same setting above it
  5. Map bubble: Adds the custom field to the listings infowindows on every map
Show only on these price packages? This will only show if you have the Prices and Payments add-on activated.
You can choose which price packages will be able to add this custom field.
If you have chosen the allowed fields in the price package itself already, then you do not need to set this again.
Is required Setting this to YES will make the field compulsory.
Required message If you set Is required to YES, then enter a message that will be displayed if the field is left empty.
Upload icon You can enter the URL of an icon you uploaded, or you can use a font awesome class.
Examples:

Entering fa fa-book will add an icon like this:
Entering fa fa-camera-retro fa-3x will add an icon like this:
CSS class: Here you can add a styling class that will be applied to the custom field when it is displayed on your site.
Every custom field is displayed in its own <div>, and the class will be added to that.
Include this field in sort option This will allow for listings on your listings and search pages, to be sorted by this field. Read more at Sorting Options.
Include this field in advanced search This will only show if you have the Advanced Search add-on activated.
This will add the custom field as a possible filter to the GD Search.

Fieldset

  1. A fieldset helps you to group your custom fields.
  2. It is very much like a heading or a divider.
  3. A fieldset is only used to display on your pages, users cannot add data to it.
  4. If you select Details page own tab at the Show in what locations? selections, then a new tab will be created for the custom fields ordered under this fieldset, and which also have Details page own tab selected.

Text Custom Field

  1. Character type:
    1. Choose this type of field and your users will be able to enter any combination of letter, numbers, symbols etc.
  2. Number type:
    1. This type will return any number as a whole number only.
    2. For example if you enter 55.65, the field will display 55.
  3. Decimal type:
    1. This type will return any number with your choice of numbers behind the decimal point.
    2. For example if you have selected the decimal point as 3, and you enter 49.2, the field will display 49.200.

Multi Select Custom Field

  1. The Multi Select field allows your users to select a number of entries from a list you create.
  2. You have the choice of three display types: Select, Checkbox and Radio.
  3. Both Select and Checkbox allow your users to choose more than one item from your list.
  4. The Radio display type is used if your users should be restricted to one selection only.
  5. You cannot use the following characters as part of your options: forward slash / or a comma ,
    (these characters are reserved for separating options and code).
  6. Do not leave spaces between values when separated with commas.
  7. This is an example of a setup of a Multi Select custom field
  8. This is how that would look on the submission form:
  9. The same setup, but with Checkbox as the display type, would look like this on the submission form:
  10. And this would be the result on the listing:
  11. Using the same settings as above, but adding gd-comma-list in the CSS class field, the output would look like this:
  12. Using the Radio display type, only one choice will be possible:

Select Custom Field

  1. The Select Custom Field allows your users to select one option only from a list.
  2. Select Custom Fields can also be added to the GD Search Bar.
  3. You cannot use the following characters as part of your options: forward slash / or a comma ,
    (these characters are reserved for separating options and code).
  4. Example 1:
    1. Frontend Title: Serving
    2. You can allow a number of possible choices
    3. Option values: Coffee,Tea,Coffee and Tea
    4. When adding the listing, the user can choose only one of these choices (assume they choose “Coffee and Tea”, and the result will look like this:
  5. Example 2:
    1. Frontend Title: Service offered
    2. You can enter the possible choices as options, and add more detailed text to be printed on the detail page
    3. Option values: Dog walking/We will walk your dog,Dog washing/Dogs shampooed and blowdried
    4. When adding the listing, this is what the user sees:
    5. The user can choose only one of these choices (assume they choose “Dog washing”, and the result will look like this:

Textarea Custom Field

  1. A textarea field allows for free-flowing text.

Checkbox Custom Field

  1. This allows a user to simply check a box, and then it will add the custom field title and the word Yes to the listing.
  2. Example:
    checkbox

Radio Custom Field

  1. Similar to the Select Custom Field, but only requires a radio button to be selected.
  2. Do not leave spaces between values when separated with commas.
  3. Example:
    1. Frontend Title: Available
    2. You can allow a number of possible choices, but the user can only select one of them
    3. Option values: Beer,Wine,Beer and Wine

URL Custom Field

  1. Allows your users to add additional links to their listing.
  2. Example 1:
    1. Frontend Title: Click here to visit our forum
    2. If they then enter their URL, it will look like this and will be linked:
      url
  3. Example 2:
    1. Frontend Title: Click here
    2. Your users can create links in this format: URL|anchor text
    3. For example when entering https://wpgeodirectory.com|GeoDirectory documentationit will add a link like this:

File Upload Custom Field

  1. Allow your users to upload most types of file.
  2. You can select the type of file that can be uploaded: Image, video, audio files and document types.
  3. Example:
    menu

Date Custom Field

  1. This will add a date picker to the Add Listing form.
  2. You can choose how the date will be displayed by adjusting the date format field:
    1. dd/mm/y = 02/10/15
    2. mm-dd-yy = 10-02-2015
    3. dd-M-yy = 02-Oct-2015
  3. Example on Add Listing form:
    date
  4. Result on detail page:
    date

Time Custom Field

  1. Similar to the date field, the Time custom field will allow your users to select a time of day.

Phone Custom Field

  1. This field will make any phone number entered clickable and will connect with the relevant application on the device where the visitor is browsing your website.
  2. For example, this allows you to add extra phone fields for cell phones or office phone etc, in addition to the default phone field.

Email Custom Field

  1. This field will just print an email address as part of the listing.
  2. This is not the same as the default custom field for each listing, which will accept an email and create an online contact popup with a hidden email address.
  3. Example:
    email

HTML Custom Field

  1. This will add a textarea complete with a visual and text rich text editor, just like your post or page editor in your WordPresss admin area.

Sorting Options

In your Place Settings (or the settings of any other Custom Post Type) you have a tab called Sorting Options.

sorting options

  1. The Sorting Options control how listings are ordered on your Listings (category) pages and in your search results.
    On the Search pages, only the default sort order will be used, and only if no keywords were used in the search.
  2. On the left hand side of the settings page, you will find a number of sorting options ready for you:
  3. You can add more options by going to your Custom Fields, and ticking the Include this field in sort option checkbox for the custom field you want to add to the sorting options.
  4. Click on any of the available sorting options on the left to make them available for sorting on your listings pages. Only the default option will be used in your search results.
  5. That will move the sorting options to the right hand side of the options page, and now you can edit the settings for the sorting options you have chosen.
    Example:
  6. Edit the settings by clicking the sorting option, and then save.
    You can drag and drop the different field types to change the order in the sorting drop down on your pages.
    Setting one of the options as default, will automatically sort by that option.
    Example:
  7.  And here is an example of how it all would look on your website: