Here you can find a list of plugins we think might be useful to you if you are looking to extend your GD site. There are plenty of other plugins about, but we know the ones listed here all work without any conflict with GD.
- Code Snippets
- Easy Theme and Plugin Upgrades
- Report Content
- Widget Logic
- Yoast SEO Free
- WP Super Cache
- Autoptimize is a popular html optimization plugin for WordPress and is now compatible with GeoDirectory.
- For Autoptimize and GeoDirectory to work together properly there are a few settings you must enable.
- Please keep reading here for details of those settings.
- GD Booster can not be used with this plugin, we recommend using WP Super Cache to compliment Autoptimize.
- The Code Snippets plugin is an easy, clean and simple way to add code snippets to your site. It removes the need to add custom snippets to your theme’s functions.php file.
- It also allows you to update the files of a (child) theme without losing any customizations, because they are stored in the database instead of in your theme files.
- After installtion visit our ‘Tips and Tricks‘ page for snippets.
- Screenshot of an example snippet:
- Make sure you activate the snippet when using the Code Snippets plugin.
- To copy and paste any code from snippets in the GeoDIrectory documentation, hover over the right hand corner of the snippet and select view source:
- WordPress has a built-in feature to install themes and plugins by supplying a zip file. Unfortunately, you cannot upgrade a theme or plugin using the same process. Instead, WordPress will say “destination already exists” when trying to upgrade using a zip file and will fail to upgrade the theme or plugin.
- Easy Theme and Plugin Upgrades fixes this limitation in WordPress by automatically upgrading the theme or plugin if it already exists.
- This plugin allows you to add a simple Ajax powered form to your listings so that your visitors can report inappropriate content, broken links and bugs.
- To make it work with your GD listings:
- Install and activate the Report Content plugin the usual way.
- Once installed select Reports > Settings from your WordPress admin menu, and under Integration Settings, set Add the report form to Manual:
- To add the Report form to your GD Detail pages, add this code to your child theme’s functions.php file, or use the Code Snippets plugin:
- And this is how it should all look:
- The Widget Logic plugin lets you control on which pages widgets appear using WP’s conditional tags.
- This example will show the dashboard widget only to users that are logged in:
- Some GD specific codes to use:
- Only shows the widget if the post type is Places:
- Will show the widget if the location is Queensland:
strtolower(geodir_get_current_location(array('echo' => false)))==strtolower('queensland')
- Will show the widget if the page is a Custom Post Type page for Places, ie not for a category, AND if the location is Queensland:
geodir_is_page('pt') && get_query_var( 'post_type' )=='gd_place' &&; strtolower(geodir_get_current_location(array('echo' => false)))==strtolower('queensland')
- Will show the widget if the location has the slug el-dorado-hills in the URL:
- Only shows the widget if the post type is Places:
- You can find all the Conditional tags here.
- If the code does not work as expected, the first thing to check is that you are using straight quotes instead of curly quotes; this can happen when copying and pasting code.
- The Yoast SEO helps you write bettercontent with previews and page analaysis.
- Search the forums for hundreds of tips on how to use this plugin to improve your rankings.
- Yoast SEO is the best and only plugin that can be used for creating sitemaps (sitemap.xml) when the Location Manager Add On is active.
- WP Super Cache is a very popular caching plugin for WordPress and is now compatible with GeoDirectory.
- For WP Super Cache and GeoDirectory to work together properly there are a few settings you must enable.
- Under Settings > WP Super Cache > Advanced make sure to set the following settings:
- Enable: Don’t cache pages for known users.
- Enable: Don’t cache pages with GET parameters. (?x=y at the end of a url)
- GD Booster can not be used with this plugin, we recommend using Autoptimize to compliment WP Super Cache
WPML makes it easy to create a multilingual GeoDirectory site. All that is required is the Multilingual Blog plugin itself. Once installed check the following settings:
- WPML > Languages > Language URL format: select Different languages in directories (examples: yoursite.com/en, yoursite.com/fr etc)
- WPML > Translation Options > Custom Posts: select your Custom Post types, like Places and Events.
(This option will not show if you have the WPML Translation Management plugin active – in that case, go here)
- If you want to translate Custom Post Type slugs as well, you need the Multilingual CMS plugin.
- Use a Default Featured Image with other third party plugins to create slideshows or other displays.
- GeoDirectory has you covered for GD specific lists, but you can use this plugin when you need a solution to work with other plugins.
- Get Default Featured Image on WordPress.org