Directory seems quite similar to GeoPlaces at first glance but actually it is way different in terms of functions, features and most importantly way of handling the functions. So, you cannot have everything in Directory site that you had in your GeoPlaces and neither you can run this theme on your GeoPlaces site. You need an another site to use Directory theme.

The only thing that can be done is DATA migration. That is, with some steps as mentioned below, you can migrate your GeoPlaces data to the Directory theme. The data migration includes the default post type “Places” in it. If you want to import your GeoPlaces events as well then you must have Tevolution Events plugin purchased and activated at your site.

GeoPlace to Directory theme

1. Compare your csv file

  • First of all, export your GeoPlaces v4 data into a .csv file from wp-admin -> GeoPlaces -> Advance settings -> Bulk Uploads -> Export. Select your post type (i.e. Places) and export it to .csv file.
  • Now, head over to your Directory website wp-admin -> Tevolution -> Bulk Import/Export -> CSV Import
  • Download sample csv of the post type “listings” to compare its column sequence and names with your exported csv data file from GeoPlaces.
  • If you want to import GeoPlaces events then, download the sample csv file of post type “events”. (Note: You can only import your events to Directory theme, if you have Tevolution Events plugin activated at your site)
  • Now open both the .csv files, comparing their columns arrange your GeoPlaces .csv file’s columns according to the .csv file columns of Directory’s listings.
  • Simply cut – paste the columns in your GeoPlaces csv file according to the positions shown in the listings sample file.
  • If you are operating with single city or haven’t activated LocationManager plugin in your Directory site then under the column “Post_city_id” leave fields blank and save your csv file before uploading.

Tip:

  • For Windows users – To save time and confusion, you can use excel/csv functions. After opening both the csv files, click Windows -> Arrange -> Horizontally given in the menu bar to arrange your files in such a way that it helps you compare faster and accurate.
  • For Mac users – It is best to work with OpenOffice when working with CSV files

But what if I have some more columns and custom fields?

As sequence matters, you cannot have them in the middle of columns shown in listings sample file, but you can add those fields/columns after the last column of the file “package_select“.

2. Change Column Names

Both the themes GeoPlaces and Directory appears to be same but they aren’t. So, there are some difference in structure and format which you have to apply to your csv file in order to import it to Directory site.

  • add templatic_ as prefix to all the column names whichever are shown in .csv file of “listings”. Those columns will be post_author, post_title, post_category, post_tags, post_content, post_excerpt, post_status, comment_status, ping_status, post_name, post_modified, post_type, post_comment_count. (Note: column names are case sensitive, so keep the column name letters exactly like mentioned in the sample csv of listings)
  • Change the column name IMAGE to templatic_img
  • Replace column name “pkg_id” with “package_select”. Now, to apply the price package to your listings you will have to mention the latest ids of “price package” (created in your site using Directory theme) in your csv file.
    • You can find out price package id from wp-admin -> Tevolution -> Monetization -> Price Packages -> then hover on the package name and you will be able to see a URL kind of thing at the left bottom of your screen e.g. admin.php?page=monetization&tab=packages&package_id=10. So in this example it is “10”. Likewise you can get your price package id and write it down in the above said column of your csv file.
  • Change the column name “geo_address” to “address”
  • Change the column name “timing” to “listing_timing” (if you are importing GeoPlaces events then either move this column at the last after “package_select” or delete it completely)
  • Change the column name “contact” to “phone”

What not to change?

If you have added some custom fields in your GeoPlaces’s “Places” custom post type, it will also be exported along with all the other fields. So, there you do not have to add “templatic_” as its prefix in the column name but place those columns at the last after the column “package_select”.

3. Add additional columns

There are few columns which were not in GeoPlaces’s .csv file but is there in Directory’s .csv file, so you need to add those columns in your .csv file of GeoPlaces at the position shown in the listing’s .csv file. Let’s see which are those columns and what you have to do,

  • Add column “post_tags” with all the tags you have after the column “video” in your csv file
  • Add two columns with the name “country_id” and “zones_id” in your GeoPlaces .csv file at the position shown in .csv file of listing in directory theme.
  • You can add the ids of country and zone (given in directory site at Tevolution -> Manage Locations) to which your post belongs.
  • Add templatic_post_guid between the columns templatic_post_modified and templatic_post_type
  • Add listing_logo between the columns website and twitter
  • Add reg_desc between the columns listing_timings and phone
  • Add reg_fees between the columns reg_desc and phone

The same thing can also be done using admin back-end by editing your listing from there and selecting the country, state and city from given drop down. But, you should choose the option according to the total cities you are having. If you are dealing with few cities and countries or states then directly write their ids in csv as it will be simple for you to copy the same value for bunch of your listings.

How to get these ids?

It is quite simple,

  • Just go to your Directory site at wp-admin -> Tevolution -> Manage Location
  • There click on any of the links Country | State | Cities for which you require an id.
  • Hover on the country/state/city name and you will find a URL kind of thing at the left bottom of your screen where the id will be at the last of the sentence.
  • For example – Hovering on any state name, you will have location_manage_locations&locations_subtabs=state_manage_locations&country_id=195&zone_id=3095. where country id is 192 and state id i.e. zone id is 3095

If you are importing your GeoPlaces “events” then compare your csv file exported from GeoPlaces with the sample events file and add the below columns at the positions shown in the sample events csv file.

  • Add templatic_post_guid between the columns templatic_post_modified and templatic_post_type
  • Add event_type between reg_desc and reg_fees
  • Add organizer_name before the column “alive_days”
  • Add organizer_email between organizer_name and alive_days
  • Add organizer_logo between organizer_email and alive_days
  • Add organizer_address between organizer_logo and alive_days
  • Add organizer_contact between organizer_address and alive_days
  • Add organizer_website between organizer_contact and alive_days
  • Add organizer_mobile between organizer_website and alive_days
  • Add organizer_desc between organizer_mobile and alive_days
  • Add two columns with the name “country_id” and “zones_id” in your file at the position shown in .csv sample events file in directory theme.

4. Remove Columns

There are some columns which were there in GeoPlaces’s csv file but is not there in Directory’s listings’s csv file. But don’t worry you will not have any data loss on removing them from your csv file as some of them were WordPress default columns that are not needed in your Directory site. If you still think that you want to include any column then you can insert that column at the last i.e. after the column “package_select

  • “post_password”
  • “to_ping”
  • “pinged”
  • “is_featured”
  • “post_modified_gmt”
  • “post_content_filtered”
  • “post_parent”
  • “menu_orders”
  • “post_mime_type”

If you require below said columns then simply place it after the column “package_select” (i..e at the last) and if not then delete them.

  • “add_feature”
  • “payment_method”
  • “remote_ip”
  • “ip_status”
  • “total_amount”

If you are importing GeoPlaces events then along with above said columns, you will also have to place below said columns at the last or remove them from your csv,

  • “map_view” (if you want to keep this column at the last after “package_select” column then you will also have to change its value from “default” to any of these map view there “Road Map” or “Terrain Map” or “Satellite Map” or “Street map” as per your need. )
  • “proprty_feature”
  • “timing”

5. Minor changes in the content

  • In your GeoPlaces .csv file, you must be having “&(ampersand)” as the separator between two category names in the column “post_category” so just replace it with “, (comma)” there to import it correctly in directory theme.
    • For Example – You are having a listing that belongs to both the categories “Places” and “Restaurants” so in your GeoPlaces csv, category column must be having values like ‘Places&Restaurants’ there you have to remove that “&” sign and put a ‘,’ i.e comma there.
    • [templ_msg_box type=”success”]CSV Tip: If you are not much aware of using excel or csv, let me tell you that you can replace it within a second. Just select the whole category column clicking on its top then find and replace “&” with “,” using ctrl + H.

  • Then, in your column “map_view“, if you have “default view” as value for your maps then just change it and write any of these map view there “Road Map” or “Terrain Map” or “Satellite Map” or “Street map” as per your need.
  • Change the post type name from “Places” to “listings”. you can use the above tip for replacement. (Note: It is case sensitive)

In short, compare your GeoPlaces .csv file with listing .csv file and add/edit columns, their names, their values and their formats and modify your GeoPlaces .csv file as per .csv file of directory theme and then import it from wp-admin -> Tevolution -> Bulk Import/Export -> CSV Import.

It is mandatory to change some column names, their values and formats as said above to import your GeoPlaces data accurately. Also, we have tested this bulk import feature only with GeoPlaces version 4 theme. So, we do not support uploading with the earlier version of GeoPlaces theme.

6. How to upload image as well along with other data?

  • Go to your active WordPress directory and create a folder named “bulk” at ../wp-content/uploads/
  • OR if you are using multi site (network) on your WordPress then create the same folder “bulk” at ../wp-content/uploads/sites/"site_Id"/ (to know your site’s Id, simply head over to Network Admin -> Sites, locate your site name there and hover on edit link given below, you will be having an URL kind of sentence at the bottom left of your screen and the numeric value written after site-info.php?id= is your site Id (e.g. site-info.php?id= 48)).
  • Move (or paste) your desired images in this “bulk” folder.
  • Now, write the same names of those images along with their file extension (like .jpg or .png etc) in your csv file in the column name “templatic_img” (as written in sample csv) and save it.
  • Then import your csv from wp-admin -> Tevolution -> Bulk Import/Export and you are done.
  • You can check it at wp-admin -> Tevolution -< Directory (for post type listings).

Nightlife to Directory theme

Well, there is nothing much that you have to do as both these themes are based on the same powerful plugin “Tevolution”. Just there are few quick checks and addition that you have to do,

1. Addition and changes

  • First of all, export your Nightlife events into a .csv file from wp-admin -> Tevolution -> Bulk Import/Export -> Bulk export(.csv). Select your post type (i.e. events) and export it.
  • Now, head over to your Directory website wp-admin -> Tevolution -> Bulk Import/Export -> CSV Import
  • Download sample csv of the post type “Events” to compare its column sequence and names with your exported csv data file from Nightlife.
  • Add two columns with the name “country_id” and “zones_id” in your csv file at the position shown in the events sample csv file in directory theme.
  • In the column name “map_view” replace the old values like “default” with any of these four options “Road Map” or “Terrain Map” or “Satellite Map” or “Street map” as per your need.

2. Few quick checks

  • Start Date and End Date of an event will be stored in the column “st_date” and “end_date. The date must be in yyyy-mm-dd format in your csv.
    • If you are not able to save date format in yyyy-mm-dd then change your system’s date format to it and then try saving your csv file. It works!
  • You must enter dates in 24 hours format e.g. 16:00. It will not let you import accurately if you use am/pm format.
  • For the column “package_select”, you will have to fill in the latest price package ids created in the Directory theme as the old one of Nightlife will not be applicable here.

If you have followed this guide and still facing any difficulty, Feel free to create a new ticket at Contact us and we’ll help you out.