{"id":985,"date":"2025-03-24T14:28:12","date_gmt":"2025-03-24T14:28:12","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/geotheme-to-geodirectory-tutorial\/"},"modified":"2025-04-03T15:24:33","modified_gmt":"2025-04-03T14:24:33","slug":"geotheme-to-geodirectory-tutorial","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/geotheme-to-geodirectory-tutorial\/","title":{"rendered":"GeoTheme to GeoDirectory Tutorial"},"content":{"rendered":"\n<p>Before you start:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>BACKUP EVERYTHING! (yes that is me shouting)<\/li>\n\n\n\n<li>Make sure you have the latest GeoTheme (GT) installed (3.7.1).<\/li>\n\n\n\n<li>Make sure your WordPress (WP) is up to date (4.5+)<\/li>\n<\/ol>\n\n\n\n<p>For this tutorial we will be converting the site barra-accommodation.co.uk from GT to GD. Please don&#8217;t try this on a live site, we will be copying our entire site to a sub directory and running the conversion there first.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Make a dev site for the conversion:<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Copy your site files to a sub-folder or sub-domain for testing the conversion, in our case we will be copying our site to a \/GD\/ sub-folder. Below i am using Cpanel but the same can be achieved with SSH or FTP. <figure><a href=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/gd-folder-create.png\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"222\" class=\"alignnone size-full wp-image-21699\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/gd-folder-create.png\" alt=\"gd-folder-create\"><\/a><\/figure><figure><a href=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/copy-files.png\"><img loading=\"lazy\" decoding=\"async\" width=\"497\" height=\"343\" class=\"alignnone size-full wp-image-21700\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/copy-files.png\" alt=\"copy-files\"><\/a><\/figure><\/li>\n\n\n\n<li>Copy Your DataBase (DB), in my case i am using phpMyAdmin to do this which is included in cpanel usually. Select your table: <figure><a href=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/select-db.png\"><img loading=\"lazy\" decoding=\"async\" width=\"197\" height=\"156\" class=\"alignnone size-full wp-image-21702\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/select-db.png\" alt=\"select-db\"><\/a><\/figure>Select &#8220;Operations&#8221;: <figure><a href=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/select-operations.png\"><img loading=\"lazy\" decoding=\"async\" width=\"485\" height=\"73\" class=\"alignnone size-full wp-image-21703\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/select-operations.png\" alt=\"select-operations\"><\/a><\/figure> Copy the table: <figure><a href=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/name-new-db.png\"><img loading=\"lazy\" decoding=\"async\" width=\"509\" height=\"323\" class=\"alignnone size-full wp-image-21704\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/name-new-db.png\" alt=\"name-new-db\"><\/a><\/figure><\/li>\n\n\n\n<li>Edit your wp-config.php file in your dev site to use the copied Database. <figure><a href=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/edit-wp-config.png\"><img loading=\"lazy\" decoding=\"async\" width=\"623\" height=\"180\" class=\"alignnone size-full wp-image-21705\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/edit-wp-config.png\" alt=\"edit-wp-config\"><\/a><\/figure><\/li>\n\n\n\n<li>Make sure the DB user has privileges on the new table, you can use Cpanel for this to add the user to the copied table: <figure><a href=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/add-user-to-db.png\"><img loading=\"lazy\" decoding=\"async\" width=\"377\" height=\"194\" class=\"alignnone size-full wp-image-21706\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/add-user-to-db.png\" alt=\"add-user-to-db\"><\/a><\/figure><\/li>\n\n\n\n<li>Finally change the &#8220;siteurl&#8221; and &#8220;home&#8221; values to the new url in your DB wp_options table. <figure><a href=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/chnge-urls-db.png\"><img loading=\"lazy\" decoding=\"async\" width=\"690\" height=\"91\" class=\"alignnone size-full wp-image-21707\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/chnge-urls-db.png\" alt=\"chnge-urls-db\"><\/a><\/figure> to our dev url with \/GD at the end: <figure><a href=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/urls-change-db.png\"><img loading=\"lazy\" decoding=\"async\" width=\"689\" height=\"93\" class=\"alignnone size-full wp-image-21708\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/urls-change-db.png\" alt=\"urls-change-db\"><\/a><\/figure><\/li>\n\n\n\n<li>Dev Note: \u00a0If you have plugin &#8220;Query Monitor&#8221; installed and active it can cause problems, just delete the folder from your plugins if you are getting 500 error on your dev site.<\/li>\n<\/ol>\n\n\n\n<p><strong>You should now have a working dev site that we will use for the conversion.<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Start The Conversion:<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install and activate the GT2GD conversion plugin <a href=\"https:\/\/github.com\/AyeCode\/geodir_gt2gd\/archive\/master.zip\">DOWNLOAD Latest<\/a> <figure><a href=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/gt2gd-install.png\"><img loading=\"lazy\" decoding=\"async\" width=\"653\" height=\"162\" class=\"alignnone size-full wp-image-21712\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/gt2gd-install.png\" alt=\"gt2gd-install\"><\/a><\/figure><\/li>\n\n\n\n<li>Go to the GT2GD admin screen, here it will have most instructions on what to do next but in this case you can continue to follow this tutorial: <figure><a href=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/gt2gd-screen.png\"><img loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"378\" class=\"alignnone size-large wp-image-21713\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/gt2gd-screen-1024x463.png\" alt=\"gt2gd-screen\"><\/a><\/figure><\/li>\n\n\n\n<li>Switch theme to a non GT theme, i would suggest <a href=\"https:\/\/wordpress.org\/themes\/directory-starter\/\" target=\"_blank\" rel=\"noopener\">Directory Starter<\/a> which can be installed direct from your wp-admin area by searching themes for &#8220;Directory Starter&#8221; but you could use just a standard WP theme.<\/li>\n\n\n\n<li>Disable any non essential plugins, especially any caching plugins.<\/li>\n\n\n\n<li><strong>YOU WILL NEED TO USED GDv1 AND ITS ADDONS FIRST AND THEN ONCE FINISHED UPDATE FROM GDv1 to GDv2.<\/strong> <br>Install and activate GeoDirectory <strong>V1 <a href=\"https:\/\/downloads.wordpress.org\/plugin\/geodirectory.1.6.38.zip\" target=\"_blank\" rel=\"noopener\">https:\/\/downloads.wordpress.org\/plugin\/geodirectory.1.6.38.zip<\/a> <\/strong><strong>and set the default location<\/strong> and then any <strong>GDv1 <\/strong>addons you will be using. \u00a0It is important to install and activate addons like Location Manager, Events, Payments Manager, Claim listings addons etc if you have this sort of info in your GT install. (or just activate everything if your not sure). You dont need to add any setting for the addons at first, you can do that after the conversion.<\/li>\n\n\n\n<li>Now visit the GT2GD admin screen again and you should now see the button to start the conversion: <figure><a href=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/start-conversion.png\"><img loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"412\" class=\"alignnone size-large wp-image-21714\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/start-conversion-1024x505.png\" alt=\"start-conversion\"><\/a><\/figure>Click the button to start the conversion: <figure><a href=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/conversion-done.png\"><img loading=\"lazy\" decoding=\"async\" width=\"541\" height=\"449\" class=\"alignnone size-large wp-image-21716\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/04\/conversion-done.png\" alt=\"conversion-done\"><\/a><\/figure><\/li>\n\n\n\n<li>Once done, go to both Place &amp; Event Settings for custom fields and simple save any ONE field, this will rebuild the sort order which can stop some fields showing on the edit pages.<\/li>\n\n\n\n<li>Check over your listings to make sure they converted properly.<\/li>\n<\/ol>\n\n\n\n<p>If the conversion worked for your site you can then either reverse the steps for creating the dev site to copy the dev site to the main site or simply carry out the conversion on your live site (assuming you have another backup), if copying the dev site over be sure to search the DB for any dev site urls. You might want to setup your theme and setting on your dev site first before making it live, and remember to setup your new payment settings etc.<\/p>\n\n\n\n<p><strong>If you changed some settings on your dev site and now your live site seems to be pointing to them you can use a plugin called Better Search Replace to replace your dev site urls to your live site urls: <a href=\"https:\/\/wordpress.org\/plugins\/better-search-replace\/\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/wordpress.org\/plugins\/better-search-replace\/<\/a><\/strong><\/p>\n\n\n\n<p>If you had existing PayPal subscription payments (recurring) you will need to add this snippet of code to your child theme functions file to be sure the PayPal payment updates your listing ok.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">add_action( &#039;init&#039;, &#039;geotheme_payment_ipn&#039; );\nfunction geotheme_payment_ipn(){\n\tif (isset($_REQUEST&#091;&#039;ptype&#039;&#093;) &amp;&amp; $_REQUEST&#091;&#039;ptype&#039;&#093;==&#039;notifyurl&#039;) {\n\t\tglobal $wp_query;\n\n\t\tif (isset($_REQUEST&#091;&#039;pmethod&#039;&#093;) &amp;&amp; $_REQUEST&#091;&#039;pmethod&#039;&#093;==&#039;paypal&#039;)\t{\n\t\t\tdo_action(&#039;geodir_ipn_handler_paypal&#039; ); \/* ADD IPN handler action *\/\n\t\t\texit;\n\t\t}\n\t}\n}<\/code><\/pre>\n\n\n\n<p>As always if you have any problems please open a new post on our support forum.<\/p>\n\n\n\n<p>Thanks,<\/p>\n\n\n\n<p>The GeoDirectory Team<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before you start: For this tutorial we will be converting the site barra-accommodation.co.uk from GT to GD. Please don&#8217;t try this on a live site, we will be copying our entire site to a sub directory and running the conversion there first. Make a dev site for the conversion: You should now have a working [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[211,432],"class_list":["post-985","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-tips-tricks-more","gd_placecategory-how-tos"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=985"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/985\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=985"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=985"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}