CTP? Copy categories?
This topic contains 13 replies, has 4 voices, and was last updated by Paolo 9 years, 12 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: copy categories, CTP
-
AuthorPosts
-
February 2, 2015 at 8:19 pm #29570
Hi,
Two questions.
1. I was going to do an import per the instructions here:
http://docs.wpgeodirectory.com/core-general/#csvThis line is unclear to me:
post_type: for example gd_place or gd_event; this CTP has to created in WP admin before you import!What is a CTP? Is that a Custom Post Type (e.g. CPT)???? If so, where in wp-admin do you create them? With a different plugin? Or if I create an event or place, will it create the custom post type?
2. Is there a way to copy categories from one WP GeoDir site to another easily?
Thanks!
February 2, 2015 at 8:25 pm #29572Hello,
yes it is CPT, Custom Post Type, you can add/edit CPT using the Custom Post Type addon hereAbout the categories, I don’t know how doable it is..I will alert Stiofan about this
February 2, 2015 at 8:33 pm #29574Ok, thanks. I had thought they might have a mistake and meant “CPT” not “CTP” on that page, but wasn’t sure and before I do an import wanted to verify.
Regarding the CPT, that page says “post_type: for example gd_place or gd_event; this CTP has to created in WP admin before you import! ” while the page you linked to says “As standard GeoDirectory comes with one CPT called “Places”, new CPT’s will have their own dedicated sidebar menu and management system just like Places.”
The only thing I am importing is my places from GeoThemes so I should not need another type.
On the import page it lists “gd_place” for the “post_type” and the CSV-SAMPLE.csv also shows “post_type” and “gd_place”. Is the correct one “Places” or “gd_place” like the CSV Sample shows? Or is gd_place just mapped to “Places” internally?
Thanks!
February 2, 2015 at 8:34 pm #29575gd_place is the name of the cpt, Places is the label, so you should go for gd_place in your CSV
February 3, 2015 at 12:05 pm #29688Thanks for pointing out the CTP mistake, fixed to CPT now 🙂
February 3, 2015 at 3:45 pm #29729No there is no easy way at the moment to export/import categories other than direct sql on the database.
Thanks
February 3, 2015 at 4:25 pm #29742Thanks. 😉
February 3, 2015 at 5:57 pm #29761You’re welcome 🙂
February 3, 2015 at 7:46 pm #29789To copy the category in the database, is it sufficient to copy the
wp_terms
wp_term_relationships
and
wp_term_taxonomytables?
Thanks
February 3, 2015 at 7:55 pm #29791It’s harder than that.
You should take:
wp_options
wp_termsIn wp_options though, there are a bunch of other settings other than categories.
With Stiofan we are discussing the urgency of providing an Import/export addon that would take care of every aspect.
Thanks
February 4, 2015 at 7:14 pm #30009Thanks. I think I will just re-enter it since it would probably be faster. 🙂
As far as the import goes, I finally got it to work. I am still not entirely clear on the address format, both of these were rejected without the location manager enabled:
“2 Breakers Rd”,Palm Beach,FL,United States,33480
or
“2 James L Turnage Blvd, West Palm Beach, FL 33415”,Palm Beach,FL,United States,33415(GeoTheme exported the street address portion with quotation marks. Is that an issue?)
Neither of those import – one with the City, State, Zip in the address field, one without unless the location manager is enabled. I will have to go and edit the addresses now that they are imported by hand.
Without location manager, I got:
0 record(s) inserted.
46 out of 46 record(s) could not be inserted due to invalid address. You can import data in default location only as you do not have multilocation ad-on enabled.It would be helpful to see exactly what the address format should be.
BTW, “multilocation ad-on” should probably be “multilocation add-on” (add vs ad).
Also I guess the multiplication add-on is actually called the “geodir_location_manager_1.2.5” so perhaps it should reference that name?Thanks again for the help!
February 5, 2015 at 4:12 pm #30110For the address problerm in CSV it should be added like this:
address: 2 Breakers Rd
City: Palm Beach
Region: Florida
Country: United States
Zip Code: 33480If you attach your CSV file we’ll have a look.
Thanks
February 5, 2015 at 5:09 pm #30123Thanks! I did just correct them after the import. 😉
So making progress doing the GeoTheme -> GeoDirectory conversion. May have more questions, but making progress.
February 5, 2015 at 5:11 pm #30124no thank you! 🙂
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket