Category: Code Snippets

Add WordPress Custom Body class (2022)

WordPress Custom Body classes WordPress Custom Body classes are something any WordPress developer will need to deal with sooner or later. Using a plugin for this would be overkill because in most cases all we need are a couple of lines of code. So, how do we add WordPress Custom Body classes? WordPress has both […]

Release of GeoDirectory v 2.0.0.61

The release today of GDv2.0.0.61 brings a few little new features that we will go over here 🙂 Classifieds Dummy Data We did a poll on Facebook asking users to vote for the next dummy data type: directory developers facebook group Classifieds won and we have now added it. You can see it here: https://wpgeo.directory/supreme-directory/classifieds/ To […]

Loading WordPress language files correctly

WordPress localization features allows you to make plugins and themes easily translatable through WordPress Language files (po/mo files). This is true especially since WordPress 3.7 and it got a whole lot easier since WordPress 4.6. A lot of improvement has been made to the whole translation system for WordPress, I felt it really needs a […]

Distance to custom field

Update Sept 2019 This has been added as a predefined custom field in V 2.0.0.67. The snippet below will only work if using GeoDirectory V1. The Problem Today a member had a bit of an unusual request, they are using GeoDirectory to run a local festival and they are listing things like accommodation for it. […]

WordPress Child Themes in 2016

What is a Child Theme? WordPress introduced the concept of child themes in early 2010, at least that is when they first appeared in the Codex. Since then child themes have been described more or less like this: “A child theme is a theme that inherits the functionality and styling of another theme, called the […]

Custom field improvements in New V1.6.6

With the release of GeoDirectory 1.6.6 brings some long awaited improvements to our custom fields settings. Most changes at first might just seem cosmetic with a new more modern user interface (UI) and tool tip hover boxes to explain what things do better but under the hood the entire system has been re-written for much […]

Formidable Forms in GeoDirectory Tabs

The plugin Formidable Forms has been brought up a few times on our forums, though for something as simple as a contact form we at GD would recommend a simple lightweight contact form such as the one we created here rather than adding a new plugin but we have been asked a few times how to […]