GD Core Plugin – Permalinks

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

Overview General Google Analytics Design Permalinks Titles & Metas Notifications Set Default Location Place Settings Theme Compatibility Import & Export GD Tools

On this page:

Add location in urls Add category in listing urls Listing url prefix GeoDirectory Pages

Permalinks settings

This page is about GeoDirectory Permalink settings, not WordPress Permalink settings.
Be aware that for GD to work properly, you need to set the WordPress Permalink settings to Post name: Read more

Add location in urls

Add location slug in listing urls:
Ticking this option will add the location of the listing to the URL, for example
mydomain.com/places/united-states/texas/dallas/hotels/my-listing
instead of
mydomain.com/places/hotels/chestnut-hill-hotel/

Add full location info with country, region and city slug in listing urls:
Use this option if your directory covers more than one region and/or country.
You can also use this option if your site only covers one region or city, but you want to include the full location in the URL of your listings.
Example: mydomain.com/places/united-states/texas/dallas/hotels/my-listing

Add city slug in listing urls:
You can only use this option  if your site only covers one region or city, do not use if your directory covers more than one region and/or country.
Example: mydomain.com/places/dallas/hotels/my-listing

Add category in listing urls

Tick or untick to include the category name in your URLS, for example
mydomain.com/places/hotels/my-listing
or
mydomain.com/places/my-listing

Listing url prefix

Enter the default name here for your listings, for example places or business or listings etc.

URL examples:
mydomain.com/places/my-listing
mydomain.com/business/my-listing
mydomain.com/listings/my-listing

If you use the Custom Post Type addon, then the listing url prefix will be replaced with the slug you enter there.

GeoDirectory Pages

GD will automatically add 8 pages that will be used as templates to create all your directory pages: GD Home page, Add Listing, Listing Preview, Listing Success, Location, Terms and Conditions page, Info page and Login page.

You can change the title and slug of these pages at the normal WordPress pages settings.

Only the Terms and Conditions page option can be left blank, all other options should have a page selected.
Each Geodirectory page should be unique, meaning that a single page from your site should not be selected for more than one of the Geodirectory Pages.

 

Custom Maps Addon

Introduction
Installation
Snazzy Maps
Settings GeneralManage Styles – featureTypeelementType – stylers
Example Removing Google’s points of interest
More information

Open Street Map Base Layers

Introduction

Custom Google Maps for GeoDirectory allows you to modify the look and feel of all Google Maps on your GD website, through an easy user interface with color pickers and simple to use options.

This way you can make the maps of your website look totally personalized and unique.

Installation

After uploading and activating the Addon, you will find the settings in your WP admin area > GeoDirectory > Custom Google Maps.

Snazzy Maps

  1. Snazzy Maps is a repository of different color schemes for Google Maps aimed towards web designers and developers.
  2. You can browse all the different map styles contributed by users, and then export that style and import it into your GD website.
  3. This blog post explains how to import the Snazzy Maps styles. 

Settings

General

Here you can choose which map you want to show as a customized map.

Choose from your location map, listings map, and the detail page map.

Manage Styles

The settings allow you to customize the presentation of the standard Google maps, changing the visual display of such elements as roads, parks, and built-up areas etc.

featureType: Every map is composed by adding different features, like roads, points of interest, waterways etc.

Read more about the different map features on the Google Developers website.

elementType: Every feature like a road, or a country border etc, are a combination of different elements, like the color of a waterway, or the color of the river’s edge.

Read more about the different elements on the Google Developers website.

stylers: Every element of a feature can be styled.

Read more about the different stylers on the Google Developers website.

Example

Removing Google’s points of interest

  1. A default Google map has “points of interest”, like restaurants, cinemas etc.
  2. So let’s remove them so you can add your own GD listings to the map:
    1. Select featureType poi
    2. Select all elementTypes
    3. Turn visibility off
  3. Then click Add:
  4. Now click Preview below the map, and you will see all points of interest will be invisible:
  5. Once you are happy with the styles you added, click Save Styles.

More information

Styled Maps – Google website

Open Street Map Base Layers

The Custom Maps Addon also enables your maps to show different Open Street Map Baselayers. Choose an Open Street Map setting first, then adjust the baselayer.

Events Addon – Widgets

This page is a work in progress, please visit the forum if you need extra help in the meantime.

Introduction GD > Are you interested GD > Related Events Listing

Introduction>

When you install the Events Addon, 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 > Are you interested yes yes yes yes yes yes
GD > Related Events Listing yes yes yes yes yes yes

GD > Are you interested

  1. This widget can only be used on the detail pages of your listings, and will show only on events detail pages.
  2. The widget will only show to logged in users.
  3. Logged in users will be able to confirm they are attending the event or they maybe will be attending.
  4. Once an event has passed, the buttons to attend will disappear, but the information will stay visible.
  5. Here is an example:

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 and Payment 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.

Common styling examples

Changing the look of a featured listing Adjusting the location switcher for cities only or a one country site Hiding category legend from location map Hiding the listings count in the popular categories widget Changing the link in the map bubble
Modifying the GD Search bar Hiding the Custom Post Type (CPT) selector Removing one CPT only from the Custom Post Type (CPT) selector Hiding the “Search for” field Changing the Advanced Search cogwheel icon to text
Customizing or hiding address details Removing reviews from one CPT only Making the reCAPTCHA V2 box resize to smaller screens
Adjust Supreme Directory Featured Image Overlay Opacity

Changing the look of a featured listing

Each featured listing has the class gd-post-featured applied in listings pages.
This class can then be targeted to change the look of featured listings.
For example adding this to your CSS:

[css].gd-post-featured {background: #BDFF00 none repeat scroll 0 0;}[/css]

results in this:
featured

Adjusting the location switcher for cities only or a one country site

The default location switcher looks like this:

If you have a GeoDirectory site for one country only, you can add this to your child theme’s style.css file:

[css]#menu-item-gd-location-switcher dd {width: 50%;}[/css]

And then your switcher will look like this:

And if you have a GeoDirectory site for one region only, you can add this to your child theme’s style.css file:

[css]#menu-item-gd-location-switcher dd {width: 100%;}[/css]

And then your switcher will look like this:

Removing category legend from location map

The default location map will have a legend showing the categories in the bottom right hand corner, like this:

Legend

If you want to hide that category list hidden by default, use the code posted below. Clicking on the expand/reduce icon will then open/close it:

Then add this CSS to your child theme’s style.css file:

[css].map_category {display: none;}[/css]

To only hide it on mobile views, you can add this CSS, adjust as required:

[css]@media only screen and (max-width: 1040px) {.map_category {display: none;}}[/css]

Hiding the listings count in the popular categories widget

The popular categories widget will have show the number of listings in the categories for the selected location like this:

If you want to hide those numbers, use the code posted below:

[css]span.geodir_term_class {display: none;}[/css]

Changing the link in the map bubble

If you want to change how the main link to the listing looks, use the code below, and adjust as required:

[css].geodir-bubble_desc h4 a {background: white; padding: 3px; border: 1px solid blue;}[/css]

These pictures show before and after:
 

Modifying the GD Search bar

The GD Search bar can have a few different components depending on the addons you use, and your settings.
Learn more about the search bar here.

Hiding the Custom Post Type (CPT) selector

This CSS will hide the CPT selector everywhere:

[css].gd-search-field-cpt {display: none;}[/css]

This CSS will hide the CPT selector on all Listings (CPT and categories) pages:

[css].gd-search-input-wrapper.gd-search-field-cpt {display: none;}[/css]

This CSS will hide the CPT selector on all Listings (CPT and categories) pages:

[css].gd-search-input-wrapper.gd-search-field-cpt {display: none;}[/css]

Removing one CPT only from the Custom Post Type (CPT) selector

This CSS will hide one CPT from the CPT selector everywhere (adjust as required):

[css].search_by_post option[value=gd_event] {display: none;}[/css]

Hiding the “Search for” field

This CSS will hide the “Search for” field everywhere:

[css].gd-search-field-search {display: none;}[/css]

Full width with all search inputs inline

This CSS will allow the search bar to expand to 100% width on the screen, allowing all the items inline:

[css].geodir-loc-bar-in {max-width: 100%;}[/css]

Using Supreme Theme you can add:

[css].sd.home .featured-area .geodir-loc-bar-in {max-width: 100%;}[/css]

Changing the Advanced Search cogwheel icon to text

To change from  to  add this CSS:

[css].fa-cog:after {content: " Advanced Filter";}[/css]

Change the Advanced Search icons

Adjust this CSS for your own style; find more icons at http://fontawesome.io/cheatsheet/
To change the cog wheel:

[css]
.fa-cog:after {font-family: FontAwesome;
content: "\f1b9"; color:white; font-size: 16px;}
.fa-cog {color:transparent; font-size: 0}
[/css]

To change the search icon:

[css]
.fa-search:after {font-family: FontAwesome;
content: "\f1b9"; color:white; font-size: 16px;}
.fa-search {color:transparent; font-size: 0}
[/css]

Use font awesome icons in any text area or as links http://fontawesome.io/cheatsheet/

[html]
<i class="fa fa-facebook-square" aria-hidden="true"></i>
[/html]

Customizing or hiding address details

The display of the different levels of the address are controlled by CSS classes:

  1. span[itemprop=”streetAddress”]
  2. span[itemprop=”addressLocality”]
  3. span[itemprop=”addressRegion”]
  4. span[itemprop=”addressCountry”]
  5. span[itemprop=”postalCode”]

For example, if you only want to display the region and country, add this to your child theme’s style.css file:

[css]span[itemprop="streetAddress"],
span[itemprop="addressLocality"],
span[itemprop="postalCode"] {
display: none;
}[/css]

Hide the default phone number from logged out users

Sometimes you may want to hide some listing information from users that are not logged in. Here is an example of how you can do that with the default phone number.

[css]
.geodir_contact {display: none}
.logged-in .geodir_contact {display: initial}
[/css]

Removing reviews from one CPT only

If you only want to disable reviews for some but not all CPTs, you can use this CSS, adjust for the CPTs you want to hide. For example, replace every event with place:

[css]
.post-type-archive-gd_event .geodir_Star {display: none;}
.post-type-archive-gd_event .geodir-bubble-meta-bottom .geodir-bubble-reviews {display: none;}
.search-results .geodir-bubble-meta-bottom .geodir-bubble-reviews {display: none;}
.post-type-archive-gd_event a.geodir-pcomments {display: none !important;}
#reviewsTab {display: none !important;}
.single-gd_event dl.geodir-tab-head [data-tab="#reviews"] {display: none !important;}
.single-gd_event .sd-detail-cta .dt-btn {display: none;}
.single-gd_event .sd-ratings {display: none;}
.gd-post-gd_event .geodir-rating {display: none;}
.search-results .geodir-bubble-meta-bottom .geodir-rating {display: none;}
.gd-post-gd_event a.geodir-pcomments {display: none !important;}
[/css]

Making the reCAPTCHA V2 box resize to smaller screens

  1. You have the option to choose two different reCAPTCHA versions:
    1. reCAPTCHA V2 which requires visitors to tick a box
    2. Invisible reCAPTCHA which works in the background
  2. reCAPTCHA V2 has a fixed width as provided by Google and therefore sometimes is to wide for a small screen or another container element on your screen.
  3. To fix this you can apply the following CSS:

    [css]
    @media screen and (max-height: 575px){
    .gd-captcha {transform:scale(0.8);
    -webkit-transform:scale(0.8);transform-origin:0 0;-webkit-transform-origin:0 0;}
    }
    [/css]

  4. Adjust the @media screen settings to target the sizes you want.

Adjusting Supreme Directory theme featured image overlay opacity

    1. Supreme Directory theme has a really strong display of the featured image.
    2. Adjusting the opacity of the featured image overlay can brighten or darken your site to suit your needs
    3. Here is some CSS that you can adjust to suit your site:

      [css]
      /*location pages overlay */
      .sd-location .featured-area::before {
      opacity:0.5!important;
      }

      /* listing pages overlay */
      .single .featured-area::before {
      opacity:0.2 !important;
      }

      /* homepage overlay */
      .sd-homepage .featured-area::before {
      opacity:0.5 !important;
      }[/css]

</ol

Remove Supreme Parallax Effect

Want a little less movement on your page?
Here’s some CSS to remove the parallax effect.
Each page type has a class, so, there are different ways to target the CSS, based on your needs.

First, this CSS will remove the effect everywhere:

[css]
.featured-img {
background-position: 50% 50% !important;
}
[/css]

This CSS is targeted at the single page for a gd_place:

[css]
.single-gd_place .featured-img {
background-position: 50% 50% !important;
}
[/css]

This is targeted more widely at any CPT for a single page, but will leave the effect in place on the home page:

[css]
.single .featured-img {
background-position: 50% 50% !important;
}
[/css]

Events Addon – Overview

Introduction Visit the demo events page
Installation
Events settings User navigationGeneral settings
Custom fields
Sorting options
Linked events settings

Introduction

The GeoDirectory Events Addon is a custom post type specifically designed for the way events usually 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.

Events perfectly integrates with all other GeoDirectory addons:

Visit the demo events page

Installation

After uploading and activating the Addon, you will be taken to the Settings page:

WordPress Admin > GeoDirectory > Event Settings.

Events Settings

User navigation

Once activated, you will need to visit the Navigation page to enable your users to add their events to your site:

WordPress Admin > GeoDirectory > Design > Navigation

All other settings are accessed at WordPress Admin > GeoDirectory > Event Settings

General settings

Default event filter

  • Your visitors can filter the events to show only upcoming events (today + future), today’s events (today only), past events (yesterday and before), or all events together.
  • The Default event filter settings will set the initial choose on the events page.
Disable Recurring Feature

  • When your users add an event, they will be able to add
    • A one-off event, either a full day event, or start and finish can be nominated.
    • Recurring events: dayly, weekly, monthly, yearly or custom (pick all applicable dates), either as full day events, or start and finish can be nominated.
  • The Disable Recurring Feature setting will restrict event submissions to one-off events only.

Custom fields

Sorting options

  • When your visitors visit your events page, they will be presented with a drop down menu that allows them to filter the events.
  • You can change how they can filter the events by organizing the sorting options in this tab.
  • Visit this page to learn more about sorting options.

Linked events settings

  • When you activate the Events addon, a new option will be added for the detail page.
  • To change these settings, in your admin area, go to GeoDirectory > Design > Detail > Linked events settings.
  • The settings there should be self-explanatory.

Translating countries and map directions

On this page:

Changing the map language and directions Translating country names 
More information Translating regions or cities

Changing the map language and directions

The default language of your GeoDirectory maps is English, but you can change that to any language supported by Google maps. This is how:

  1. Go to your WP admin  area
  2. Navigate to GeoDirectory > Design > Map
  3. Under default map settings, change the language at Default map language

This will also change the directions given on any listing detail page, when visitors enter their address in the directions field below the map.

To translate other language strings related to your maps (like Enter Your Location below the map on the detail page), review the core translation article.

Translating country names

This only applies if you use the Location Manager (MultiLocations).

  1. Translate the countries in the language file of the core GD plugin (review the core translation article).
  2. In your WP admin area, navigate to GeoDirectory > MultiLocations > Translate Countries.
  3. Select the countries you want to translate, and click Update.
  4. This will change the country name and the country URL site-wide.

More information

Translating regions or cities

  1. Only countries can be translated, regions and cities cannot be translated.
  2. The name and slugs of regions and cities will be added as per the Map API.
  3. If you have a multi-language site with WPML, all regions and cities will have the same name and slug across the different languages.

How to use GD without street addresses?

From version 1.4.6.1 of the GeoDirectory core plugin and version 1.1.6 of the Custom Post Type addon, you can use listing types that do not need an address, and that will not be displayed on the maps.

Until then (or if you do not use the Custom Post Type addon), for the maps to work correctly, every listing in your directory needed an exact location on the map.

But that does not mean that you have to display the address of the listing.

This article explains how you can hide your street addresses. This might also be hqndy if you want to add listings to the maps, but you want to hide street addresses, or country details etc.

Hiding the address on the detail page

This will apply to all your listings.

The display of the different levels of the address are controlled by CSS classes:

    1. span[itemprop=”streetAddress”]
    2. span[itemprop=”addressLocality”]
    3. span[itemprop=”addressRegion”]
    4. span[itemprop=”addressCountry”]
    5. span[itemprop=”postalCode”]

    For example, if you only want to display the region and country, add this to your child theme’s style.css file:

    [css]span[itemprop="streetAddress"],
    span[itemprop="addressLocality"],
    span[itemprop="postalCode"] {
    display: none;
    }[/css]

    Modifying the Add Listing page

    This can be applied differently for each Custom Post Type.

    Option 1: Require street input (recommended)

    Edit GD > Place Settings > Custom fields > Field:Address > Front end description.

    For example: The street address will not be shown on your listing, but your business location will be shown on the map at this address. You can also just enter the city name for a more generic display on the map. 

    Option 2: Do not require street input

    You can remove the requirement for the street address by CSS:

    [css]#geodir_post_address_row {
    display: none;
    }[/css]

    This option means that the street address will be calculated by the Google map and will be either the address where the marker is dragged, or the city name if Set Address On Map is clicked.

    Option 3: Remove all address fields (not recommended)

    You can remove all the address fields and set addresses by dragging the marker on the map only. The Google API will still fill in the complete address, but it will not be displayed on the Add Listing form.

    This option can lead to incorrect locations being added to your database, and might require some maintenance.

    Add this to your CSS for option 3:

    [css]#geodir_post_address_row,
    #geodir_post_country_row,
    #geodir_post_region_row,
    #geodir_post_city_row,
    #post_set_address_button,
    #geodir_post_zip_row {
    display: none
    }[/css]

    Custom field examples

    On this page:

    Special icons

    The icons you see above are created using custom fields and some CSS styling.

    is created using a checkbox custom field and an image background.
    is created using a select custom field.
    is created using a text custom field.
    is created using a checkbox custom field and a FontAwesome background.

    Creating the custom fields

    The above examples all use these settings:

    1. Is active: Yes
    2. Show on listing page: Yes
    3. Complete any other fields as you wish
    Custom field settings:
    1. Choose a Checkbox field
    2. HTML variable name: pool (example only – needs to be a unique name)
    Custom field settings:
    1. Choose a Select field
    2. HTML variable name: range (example only – needs to be a unique name)
    3. Option values: Cheap/$,Modest/$$,Expensive/$$$,Rip-Off/$$$$ 
      1. Example only
      2. The text before the / is the choice your users will see, and the text after the / is the text displayed on your site.
    Custom field settings:
    1. Choose a Text field
    2. Field data type: NUMBER
    3. HTML variable name: discount (example only – needs to be a unique name)
    Custom field settings:
    1. Choose a Checkbox field
    2. HTML variable name: parking (example only – needs to be a unique name)

    Styling your custom field output

    To style the result of your custom fields on your website, add the following to your child theme’s style.css file:

    [css].geodir-entry-meta {clear: both;}[/css]

    Then also add the relevant codes below:

    1. Examples only.
    2. Adjust to suit your site etc.
    3. Every custom field automatically is asigned a CSS class like geo_HTML variable name
    CSS code:

    [css]
    /* Pool label style */
    .geodir_pool {
    float: left;
    display: inline;
    clear:none !important;
    margin: 3px 3px 3px 0px;
    border-radius: 5px;
    border: 1px solid blue;
    background: white;
    background-image: url("/img/pool.png");
    background-repeat: no-repeat;
    color: transparent;
    font-weight: 400;
    width: 38px;
    text-align: center;
    background-position: 3px;
    }
    .geodir_pool .geodir-i-checkbox {
    display: none;
    }
    [/css]

    CSS code:

    [css]/* Range label style */
    .geodir_range {
    float: left;
    display: inline;
    clear:none !important;
    margin: 3px 3px 3px 0px;
    border-radius: 5px;
    background: none repeat scroll 0 0 green;
    color: #fff;
    font-weight: 400;
    width: 40px;
    text-align: center;
    padding: 6px 0 !important;
    }
    .geodir_range .geodir-i-select {
    display: none;
    }[/css]

    CSS code:

    [css]/* Discount label style */
    .geodir_discount:after {
    content: "%";
    }
    .geodir-i-text {
    display: none;
    }
    .geodir_discount {
    background: none repeat scroll 0 0 red;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 6px 0 !important;
    width: 40px;
    float: left;
    display: inline;
    clear:none!important;
    margin: 3px 3px 3px 0px;
    }[/css]

    CSS code:
    1. This button uses FontAwesome to create the images.
    2. If you look at the code below, you’ll see content: “\f1b9”
    3. That is the FontAwesome code for the image  of the car.
    4. To find the CSS code for any FontAwesome “letter”, have a look at the FontAwesome cheatsheet.
    5. There you will find all FontAwesome “letters”, and to get the CSS code, remove &#x from the beginning of the code, and ; from the end of the code, and add a \ in front.
    6. For example the CSS code for fa-car [&#xf1b9;] is \f1b9

    [css]/* Parking label style */
    .geodir_parking {
    float: left;
    display: inline;
    clear:none !important;
    margin: 3px 3px 3px 0px;
    border-radius: 5px;
    border: 1px solid #990099;
    background: white;
    color: transparent;
    width: 38px;
    text-align: center;
    background-position: 3px;
    height: 29px;
    }
    .geodir_parking:before {
    font-family: FontAwesome;
    content: "\f1b9";
    color: #990099;
    font-size: 18px;
    padding-left: 8px;
    }
    .geodir_parking .geodir-i-checkbox {
    display: none;
    }[/css]

    Adding customer logos

    Creating the custom field

    1. Create a File Upload custom field
    2. For the HTML variable name, the below example uses logo (example only – needs to be a unique name)
    3. For this example we have added it to the sidebar

    Styling your custom field output

    If you now upload a file as a logo, it will look like this, so we will need to add some CSS to make it look a bit better:

    Removing “Logo:”

    Adding this CSS will remove the label:

    [css].geodir_logo .geodir-i-select span { display: none !important;}[/css]

    Adding this CSS will resize the logo:

    [css].geodir_logo .geodir-custom-post-gallery .geodir_thumbnail {background-size: initial;}
    .geodir_logo .geodir-custom-post-gallery {width: 100% !important;}
    .geodir_logo .geodir-custom-post-gallery {
    border: none;
    margin-bottom: -10px;
    margin-top: -10px;
    }[/css]

    And this is the result:

    Understanding hooks, actions and filters

    Introduction

    Your website pages are the result of WordPress and GD (and your theme and other plugins) checking your server files and your database to create the code that renders the page in your browser.

    Actions and Filters are functions that can be modified to change the default functionality of GD and WordPress.

    Actions or Filters are “hooked” into your pages by “hooking” them to action or filter hooks provided.

    Action Hooks

    Action hooks are special points in the WordPress or GD code that enable you to insert additional code and therefore customize the code to do some additional function.

    For example, if you want to add a favicon to all your pages, you could hook into the wp_head action hook, a hook provided to add extra coding between your  <head> and </head> tags of your web pages. You would add the following code to your functions.php file:

    [php]
    function myplugin_favicon_head_code() {
    echo ‘<link rel="icon" type="image/png" href="/images/favicon.ico">’;
    }
    add_action(‘wp_head’, ‘myplugin_favicon_head_code’);
    [/php]

    Actions make things happen.

    Filter Hooks

    Filter hooks are used to change the behavior of the default code.

    For example, if you want to change the date format of the Events plugin, you can filter the default code to change the output. You would add the following code to your functions.php file:

    [php]
    function geodir_add_event_calendar_date_format_change($format){
    return ‘d/m/Y’;
    }
    add_filter(‘geodir_add_event_calendar_date_format’, ‘geodir_add_event_calendar_date_format_change’,10,1);

    [/php]

    Filters change how things happen.

    For a list of all Actions and Filters used by GeoDirectory, please refer to the GeoDIrectory Codex

    Known issues

    This page lists some conflicts with other plugins or themes.

    Note that the below problems were correct at the time of writing, and that either GD or the third party plugins or themes may have been modified in the meantime to correct the problem.

    Let us know if anything on this page is no longer valid. Thank you.

     

    Plugins

    Themes

    Other

    Cache Plugins

    Plugins

    Advanced Access Manager

    1. This plugin is not compatible with the GD Search functions without the following setting:
    2. AAM > Settings > Content Settings > Check Post Visibility – UNCHECK this setting

    Advanced Custom Fields

    1. Hide WP Custom Fields – This plugin will hide the normal WordPress custom fields in the backend editor for posts. Some themes like Supreme make use of WP custom fields, so, disable the plugin to view and edit the custom fields.
    2. Incompatibility – Geodirectory does not have any integration with ACF for listing custom fields. Adding fields through ACF will not add fields to all GD listings; use GD custom fields instead.

    BuddyPress Docs

    1. This plugin is not compatible with the GD Search functions.

    BuddyBoss Wall

    1. This plugin is not compatible with the GD Search functions.

    BuddyPress Global Search

    1. This plugin is not compatible with the GD Search functions.

    Edit Flow

    1. Edit Flow adds a custom taxonomy (category) to all post type following_user and adding the author automatically to the post as a new category.
    2. Edit Flow also partially breaks the dashboard for GD posts.

    EventOn

    1. EventOn breaks the GD Add Listing forms.

    Express Curate

    1. This plugin creates duplicate WP posts of any new GD listing.

    Hide My WP

    1. This plugin rewrites the path of your folders and files using .htaccess.
    2. Your searches etc will no longer work.

    Loco Translate

    1. Loco Translate is not compatible with Geodirectory. Only WPML is compatible with Geodirectory for multilingual sites.
    2. Geodirectory translation should be done with PoEdit as described here.
    3. Local Translate will overwrite .PO files placed at wp-content/languages/plugins
    4. Loco Translate will automatically create language files with incorrect names so that the files are not loaded.
    5. Loco Translate does not recognize all GD language strings, so you will not be able to translate everything.
    6. Check the file names of the .PO files to make sure they are correct, see Translating Addons for the correct file names.

    TranslatePresss

    1. Stores additional copies of strings found in language files.
    2. Can result in changes to PO files ‘not working’ because TranslatePress versions will override PO string values.
    3. TranslatePress must be de-activated to diagnose issues with PO file strings.
    4. Only WPML is fully compatible with GD.

    Polylang

    1. Only WPML is fully compatible with GD.

    Relevanssi

    1. This plugin is not compatible with the GD Search functions.

    Scripts n Styles

    1. This plugin introduces a jQuery chosen conflict that can cause GD forms to not function.
    2. The plugin can cause isues on any add/edit post pages or anywhere in the backend..

    Scroll To Anchor

    1. This plugin breaks the menus of the Supreme theme in mobile view.

    Sidebar & Widget Manager for WordPress

    1. If your drop-down menus in GD admin area don’t work, then this premium plugin from OTWthemes might be the reason.
    2. Reported by a user on 3 August 2015.

    Simple Custom CSS and JS

    1. Breaks JS.

    Theme My Login

    1. This plugin is not compatible with the GD Search functions.

    The SEO Framework

    1. The SEO Framework breaks GeoDirectory queries, we suggest to use Yoast that is 100% compatible with GD, or GD’s Titles and Meta options.

    Ubermenu

    1. This plugin calls the Google Map API (and also fontawesome), just like GD does.
      The result is that your page tries to load the Google API twice.
      Therefore your maps will not work.
    2. You can fix this by disabling both the Google Map API  and fontawesome in the Ubermenu settings > General Settings > Assets.

    WP Places

    1. This plugin causes backend editor google map to fail to load.
    2. The plugin loads another copy of the GMaps API causing all maps to fail on the page.
    3. The plugin loads on every backend post edit page, even if the post types are disabled.

    WP-SpamShield

    1. This plugin stops your GD registration and login process.
    2. This plugin is not compatible with the WPaffiliate plugin required with the GD WPaffiliate Integration addon.  .
    3. We suggest using GD Recaptcha.

    Yoast SEO

    1. Specific settings for redirects may conflict with GD “Near” Search.
    2. The Yoast setting comes with a warning: “May cause conflicts!”.
    3. Check “No Redirect” at SEO > Advanced > Permalinks > “Redirect ugly URLs to clean permalinks”.
    4. “Disable author archives” will make the GD profile pages disappear.
    5. Yoast sitemaps regenerate automatically. If changes are made to Permalinks it may take some time for Yoast to regenerate the pages with the new URL structure.

    Themes

    Braxton

    1. You will not be able to add some GD widgets to your pages.

    Langwitch

    1. The multilingual features do not work with custom post types like GD listings.

    Sky

    1. This theme replaces some GD options with their own, for example the sorting options for the Place Settings.

    Kleo

    1. Broken URLs – Past versions of Kleo have included a filter for wp_redirect that breaks redirects across the site. If you are experiencing that issue, you should contact Kleo support and reference this information. Past fix was to comment lines 99-103 in file kleo\lib\importer\import.php (see the following code)
      [php]
      if ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) {
      add_filter( ‘wp_redirect’, function () {
      return false;
      } );
      }[/php]

    AviaBuilder

    AviaBuilder is included with several popular themes including Enfold.

    1. Unable to edit/save listing in frontend or backend – See this topic for a fix: https://wpgeodirectory.com/support/topic/listing-description-not-visible-after-saving/page/2/#post-420413
    2. Maps not loading – See https://wpgeodirectory.com/support/topic/unable-to-make-changes-to-records-places-even-as-admin/#post-436922

    Thrive

    1. The builder strips inline CSS from the header.
    2. Add CSS to GD > Scripts > Footer instead of header

    Other

    Flexslider

    1. You can only use one Flexslider on a page, and because GD and some other plugins and themes use the same Flexslider, there often is a conflict resulting in only one of the two flexsliders on the page working.
    2. You can add this line to your theme functions.php and it should solve it for you:

      [php]wp_enqueue_script(‘geodirectory-jquery-flexslider-js’);[/php]

    Cache Plugins

    General Compatibility with Cache Plugins

    1. GeoDirectory is only fully compatible with GD Booster and WP Super Cache.
    2. Please see settings for Autoptimize here
    3. If you use WP Super Cache, you need to review the settings here.
    4. If you use GD Booster, it is recommended that you do not use any other cache plugins with it (including WP Super Cache).

    Image Opitmizers

    GeoDirectory is designed with several optimizations for images. Listings images are stored outside the media library to keep the media library uncluttered. Therefore, some plugins that claim to optimize images are not compatible with GD and can lead to unexpected behavior. Here are a couple of the ones we have heard of so far.

    1. WP Smushit – not compatible, results in images not being displayed
    2. EWWW Image Optimizer – not compatible, may result in blank pages for Add listing process

    Bluehost

    1. Bluehost plugin caching is incompative with GD.

    Jetpack

    1. GeoDirectory listings are not available to be indexed by Jetpack Search at Admin > Jetpack > Settings > Traffic > Search
    2. ‘Speed up images and photos’ setting will cause images to ‘disappear’, with or without GD Booster.
    3. ‘Social networks sharing’ may cause duplicate graph metadata and create difficulty with sharing to social networks.
    4. ‘Widget Visibility’ jetpack plugin can interfere with adding some GD widgets [reported 14 September 2015].
    5. Automattic adds new features to Jetpack regularly; report new issues as you find them.

    Jetpack – Comments

    1. When enabling Jetpack Comments, your comments on your listings will not be counted by GD.
    2. Do NOT enable Show a ‘follow comments’ option in the comment form at Settings > Discussion for the Jetpack settings.
    3. Do NOT enable GD Recaptcha for comments if you are using Jetpack comments with social login.

    Cloudflare Rocket Loader

    1. Cloudflare Rocket Loader is not compatible with GD.
    2. The only compatible tool to minify and concatenate scripts and css files is GD Booster.
    3. In some cases may be the cause of Google Map’s failure to load.

    Scripts to Footer

    1. Causes JQuery errors visible in console, resulting in breaking search and maps.

    W3Cache

    1. GD and GD Booster are not compatible with W3Cache.