{"id":22704,"date":"2016-08-18T23:57:59","date_gmt":"2016-08-18T23:57:59","guid":{"rendered":"https:\/\/wpgeodirectory.com\/docs\/?p=22704"},"modified":"2018-09-19T07:13:20","modified_gmt":"2018-09-19T07:13:20","slug":"useful-plugins","status":"publish","type":"post","link":"https:\/\/wpgeodirectory.com\/docs\/useful-plugins\/","title":{"rendered":"Useful plugins"},"content":{"rendered":"<p>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\u00a0with GD.<\/p>\n<ol>\n<li><a href=\"#autoptimize\">Autoptimize<\/a><\/li>\n<li><a href=\"#bsr\">Better Search Replace<\/a><\/li>\n<li><a href=\"#snippets\">Code Snippets<\/a><\/li>\n<li><a href=\"#easy\">Easy Theme and Plugin Upgrades<\/a><\/li>\n<li><a href=\"#report\">Report Content<\/a><\/li>\n<li><a href=\"#logic\">Widget Logic<\/a><\/li>\n<li><a href=\"#social\">Yoast SEO Free<\/a><\/li>\n<li><a href=\"#super-cache\">WP Super Cache<\/a><\/li>\n<li><a href=\"#wpml\">WPML<\/a><\/li>\n<li><a href=\"#email\">Email<\/a><\/li>\n<\/ol>\n<h3><a name=\"autoptimize\"><\/a>Autoptimize<\/h3>\n<ol>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/autoptimize\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Autoptimize<\/a> is a popular html optimization plugin for WordPress and is now compatible with GeoDirectory.<\/li>\n<li>For Autoptimize and GeoDirectory to work together properly there are a few settings you must enable.<\/li>\n<li><a href=\"https:\/\/wpgeodirectory.com\/docs\/autoptimize-settings\/\"><i class=\"fa fa-folder-open fa-2x\"><\/i> Please keep reading here for details of those settings.<\/a><\/li>\n<li><i class=\"fa fa-exclamation-triangle fa-2x\" style=\"color: red;\"><\/i> <span style=\"color: #ff0000;\">GD Booster can not be used with this plugin, we recommend using <a href=\"https:\/\/wpgeodirectory.com\/docs\/useful-plugins\/#super-cache\">WP Super Cache<\/a> to compliment Autoptimize.<\/span><\/li>\n<\/ol>\n<h3><a name=\"bsr\"><\/a>Better Search Replace<\/h3>\n<ol>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/better-search-replace\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Better Search Replace<\/a>\u00a0will assist with changing URLs or slugs etc in your database.<\/li>\n<li><i class=\"fa fa-exclamation-triangle fa-2x\" style=\"color: red;\"><\/i>It is also very helpful when changing your site from HTTP to HTTPS.<\/li>\n<li><a href=\"https:\/\/wpgeodirectory.com\/docs\/better-search-replace-plugin\/\"><i class=\"fa fa-folder-open fa-2x\"><\/i> Read more here\u00a0<\/a><\/li>\n<\/ol>\n<h3><a name=\"snippets\"><\/a>Code Snippets<\/h3>\n<ol>\n<li>The <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" rel=\"noopener noreferrer\">Code Snippets plugin<\/a> is an easy, clean and simple way to add code snippets to your site.\u00a0It removes the need to add custom snippets to your theme&#8217;s <em><strong>functions.php<\/strong><\/em> file.<\/li>\n<li>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.<\/li>\n<li>After installtion visit our &#8216;<a href=\"https:\/\/wpgeodirectory.com\/docs\/common-code-snippets\/\" target=\"_blank\" rel=\"noopener noreferrer\">Tips and Tricks<\/a>&#8216; page for snippets.<\/li>\n<li>Screenshot of an example snippet:<br \/>\n<img loading=\"lazy\" class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/08\/plugin3.png\" alt=\"\" width=\"805\" height=\"226\" \/><\/li>\n<li><i class=\"fa fa-exclamation-triangle fa-2x\" style=\"color: red;\"><\/i> <span style=\"color: #ff0000;\">Make sure you activate the snippet when using the Code Snippets plugin.<\/span><\/li>\n<li><i class=\"fa fa-lightbulb-o fa-2x\" style=\"color: green;\"><\/i> To copy and paste any code from snippets in the GeoDIrectory documentation, hover over the right hand corner of the snippet and select <em><strong>view source<\/strong><\/em>:<br \/>\n<img loading=\"lazy\" class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/08\/codesnippet1.png\" alt=\"\" width=\"466\" height=\"113\" \/><\/li>\n<\/ol>\n<h3><a name=\"easy\"><\/a>Easy Theme and Plugin Upgrades<\/h3>\n<ol>\n<li>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 &#8220;destination already exists&#8221; when trying to upgrade using a zip file and will fail to upgrade the theme or plugin.<\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/easy-theme-and-plugin-upgrades\/\" target=\"_blank\" rel=\"noopener noreferrer\">Easy Theme and Plugin Upgrades<\/a> fixes this limitation in WordPress by automatically upgrading the GeoDirectory theme or plugin if it already exists.<\/li>\n<\/ol>\n<h3><a name=\"report\"><\/a>Report Content<\/h3>\n<ol>\n<li>This plugin allows you to add a simple Ajax powered form to your listings\u00a0so that your visitors can report inappropriate content, broken links and bugs.<\/li>\n<li>To make it work with your GD listings:\n<ol>\n<li>Install and activate the <a href=\"https:\/\/wordpress.org\/plugins\/report-content\/\" target=\"_blank\" rel=\"noopener noreferrer\">Report Content plugin<\/a> the usual way.<\/li>\n<li>Once installed select\u00a0<em><strong>Reports &gt; Settings\u00a0<\/strong><\/em>from your WordPress admin menu, and under <em><strong>Integration Settings<\/strong><\/em>, set <em><strong>Add the report form<\/strong><\/em> to <em><strong>Manual<\/strong><\/em>:<br \/>\n<img loading=\"lazy\" class=\"bordergreen\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/08\/useful1.png\" alt=\"\" width=\"628\" height=\"159\" \/><\/li>\n<li>To add the Report form to your GD Detail pages, add this code to your child theme&#8217;s functions.php file, or use the <a href=\"https:\/\/wpgeodirectory.com\/docs\/useful-plugins\/#snippets\">Code Snippets plugin<\/a>:\n<p>[php]add_action(&#8216;geodir_details_main_content&#8217;, &#8216;wprc_report_submission_form&#8217;,60);[\/php]<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>And this is how it should all look:<br \/>\n<img loading=\"lazy\" class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/08\/useful2.png\" alt=\"\" width=\"543\" height=\"183\" \/><\/li>\n<\/ol>\n<h3><a name=\"logic\"><\/a>Widget Logic<\/h3>\n<ol>\n<li>The\u00a0<a href=\"https:\/\/wordpress.org\/plugins\/widget-logic\/\" target=\"_blank\" rel=\"noopener noreferrer\">Widget Logic plugin<\/a> lets you control on which pages widgets appear using WP&#8217;s conditional tags.<\/li>\n<li>This example will show the dashboard widget only to users that are logged in:<br \/>\n<img loading=\"lazy\" class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/08\/plugin2.png\" alt=\"\" width=\"418\" height=\"224\" \/><\/li>\n<li><strong>Some GD specific codes to use:<\/strong>\n<ol>\n<li>Only shows the widget if the post type is Places:\n<p>[php]geodir_get_current_posttype()==&#8217;gd_place'[\/php]<\/p>\n<p>for a single GD Place detail page<\/p>\n<p>[php]is_singular( &#8216;gd_place&#8217; )[\/php]<\/p>\n<p>for a GD Place Archive Page<\/p>\n<p>[php]is_post_type_archive(&#8216;gd_place&#8217;)[\/php]<\/p>\n<\/li>\n<li>Will show the widget if the location is Queensland:\n<p>[php]strtolower(geodir_get_current_location(array(&#8216;echo&#8217; =&gt; false)))==strtolower(&#8216;queensland&#8217;)[\/php]<\/p>\n<\/li>\n<li>Will show the widget if the page is a Custom Post Type page for Places, ie not for a category, AND\u00a0if the location is Queensland:\n<p>[php]geodir_is_page(&#8216;pt&#8217;) &amp;&amp; get_query_var( &#8216;post_type&#8217; )==&#8217;gd_place&#8217; &amp;&amp; strtolower(geodir_get_current_location(array(&#8216;echo&#8217; =&gt; false)))==strtolower(&#8216;queensland&#8217;)[\/php]<\/p>\n<\/li>\n<li>Will show the widget if the location\u00a0has the slug\u00a0el-dorado-hills in the URL:\n<p>[php]in_array(&#8216;el-dorado-hills&#8217;, geodir_get_current_location_terms(&#8216;query_vars&#8217;))[\/php]<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li><a href=\"https:\/\/codex.wordpress.org\/Conditional_Tags\" target=\"_blank\" rel=\"noopener noreferrer\">You can find all the Conditional tags here.<\/a><\/li>\n<li><i class=\"fa fa-exclamation-triangle fa-2x\" style=\"color: red;\"><\/i> If the code does not work as expected, the first thing to check is that you are using <strong><em>straight<\/em><\/strong> quotes instead of <strong><em>curly<\/em><\/strong> quotes; this can happen when copying and pasting code.<\/li>\n<\/ol>\n<h3><a name=\"social\"><\/a>Yoast SEO<\/h3>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>The\u00a0<a href=\"https:\/\/wordpress.org\/plugins\/wordpress-seo\/\/\" target=\"_blank\" rel=\"noopener noreferrer\">Yoast SEO<\/a> helps you write bettercontent with previews and page analaysis.<\/li>\n<li><a href=\"https:\/\/www.google.co.id\/search?q=site%3Awpgeodirectory.com+yoast&amp;oq=site%3Awpgeodirectory.com+yoast\" target=\"_blank\" rel=\"noopener noreferrer\">Search the forums<\/a> for hundreds of tips on how to use this plugin to improve your rankings.<\/li>\n<li>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.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p><img loading=\"lazy\" class=\"greenborder\" src=\"https:\/\/ps.w.org\/wordpress-seo\/assets\/icon-256x256.png?rev=155038\" alt=\"Yoast SEO by Team Yoast\" width=\"60\" height=\"60\" \/><\/p>\n<h3><a name=\"super-cache\"><\/a>WP Super Cache<\/h3>\n<ol>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/wp-super-cache\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">WP Super Cache<\/a> is a very popular caching plugin for WordPress and is now compatible with GeoDirectory.<\/li>\n<li>For WP Super Cache and GeoDirectory to work together properly there are a few settings you must enable.<\/li>\n<li>Under <em><strong>Settings &gt; WP Super Cache\u00a0&gt; Advanced<\/strong><\/em> make sure to set the following settings:\n<ol>\n<li><strong>Enable:<\/strong> Don\u2019t cache pages for known users.<\/li>\n<li><strong>Enable:<\/strong> Don\u2019t cache pages with GET parameters. (?x=y at the end of a url)<\/li>\n<\/ol>\n<\/li>\n<li><i class=\"fa fa-exclamation-triangle fa-2x\" style=\"color: red;\"><\/i> <span style=\"color: #ff0000;\">GD Booster can not be used with this plugin, we recommend using <a style=\"color: #ff0000;\" href=\"https:\/\/wpgeodirectory.com\/docs\/autoptimize-settings\/\">Autoptimize<\/a> to compliment WP Super Cache<\/span><\/li>\n<\/ol>\n<h3><a name=\"wpml\"><\/a>WPML<\/h3>\n<p>WPML makes it easy to create\u00a0a multilingual GeoDirectory site. All that is required is the\u00a0<a href=\"https:\/\/wpml.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Multilingual Blog plugin<\/a> itself. Once installed check the following settings:<\/p>\n<ol>\n<li><em><strong>WPML &gt; Languages &gt; Language URL format:<\/strong><\/em>\u00a0select <em><strong>Different languages in directories\u00a0<\/strong><\/em>(examples: yoursite.com\/en, yoursite.com\/fr etc)<\/li>\n<li><em><strong>WPML &gt; Translation\u00a0Options\u00a0&gt; Custom Posts:<\/strong> <\/em>select your Custom Post types, like Places and Events.<br \/>\n(This option will not show if you have the <em><strong>WPML Translation Management<\/strong><\/em> plugin active &#8211; in that case, <a href=\"https:\/\/wpgeodirectory.com\/docs\/translating-custom-post-types\/\">go here<\/a>)<\/li>\n<li>If you want to translate Custom Post Type slugs as well, you need the <a href=\"https:\/\/wpml.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Multilingual CMS plugin<\/a>.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/wpgeodirectory.com\/docs\/category\/translation\/\"><i class=\"fa fa-folder-open fa-2x\"><\/i> Review GD translation documentation<\/a><\/p>\n<h3><a name=\"default\"><\/a>Default Featured Image<\/h3>\n<p>Have you ever wanted to create a slideshow with another plugin, but, found that the Listing Featured Images didn&#8217;t appear as expected? This plugin will &#8216;tick&#8217; an additional option for the listing featured image so that the featured image, the first image for you listing, can be used in other ways and by other plugins on your site.<\/p>\n<ol>\n<li>Use a Default Featured Image with other third party plugins to create slideshows or other displays.<\/li>\n<li>GeoDirectory has you covered for GD specific lists, but you can use this plugin when you need a solution to work with other plugins.<\/li>\n<li>Get <a href=\"https:\/\/wordpress.org\/plugins\/default-featured-image\/\" target=\"_blank\" rel=\"noopener noreferrer\">Default Featured Image<\/a> on WordPress.org<\/li>\n<\/ol>\n<h3><a name=\"end-spam-registration\"><\/a>Anti-Spam on Registration<\/h3>\n<p>We have two recommendations for keeping unwanted Spammers from registering on your site.<\/p>\n<ol>\n<li>Paid plugin &#8211; <a href=\"https:\/\/wordpress.org\/plugins\/cleantalk-spam-protect\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/wordpress.org\/plugins\/cleantalk-spam-protect\/<\/a><\/li>\n<li>Free plugin &#8211; Stop Spammer Registrations &#8211; <a href=\"https:\/\/wordpress.org\/plugins\/stop-spammer-registrations-plugin\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/wordpress.org\/plugins\/stop-spammer-registrations-plugin\/<\/a><\/li>\n<\/ol>\n<h3><a name=\"email\"><\/a>Email Log<\/h3>\n<p>Wondering why you aren&#8217;t receiving email from your site? <\/p>\n<ol>\n<li>Email Log <a href=\"https:\/\/wordpress.org\/plugins\/email-log\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/wordpress.org\/plugins\/email-log\/<\/a><\/li>\n<li>Log each email that is created by the site, and verify if it is sent out or not.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>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\u00a0with GD. Autoptimize Better Search Replace Code Snippets Easy Theme and Plugin Upgrades &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/wpgeodirectory.com\/docs\/useful-plugins\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Useful plugins&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1676,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[15],"tags":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts\/22704"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/users\/1676"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/comments?post=22704"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts\/22704\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/media?parent=22704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/categories?post=22704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/tags?post=22704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}