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 Ticket
  • Author
    Posts
  • #29570

    phonebook
    Lifetime Member
    Post count: 27

    Hi,
    Two questions.
    1. I was going to do an import per the instructions here:
    http://docs.wpgeodirectory.com/core-general/#csv

    This 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!

    #29572

    Simone
    Expired Member
    Post count: 3515

    Hello,
    yes it is CPT, Custom Post Type, you can add/edit CPT using the Custom Post Type addon here

    About the categories, I don’t know how doable it is..I will alert Stiofan about this

    #29574

    phonebook
    Lifetime Member
    Post count: 27

    Ok, 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!

    #29575

    Simone
    Expired Member
    Post count: 3515

    gd_place is the name of the cpt, Places is the label, so you should go for gd_place in your CSV

    #29688

    Guust
    Moderator
    Post count: 29970

    Thanks for pointing out the CTP mistake, fixed to CPT now 🙂

    #29729

    Paolo
    Site Admin
    Post count: 31206

    No there is no easy way at the moment to export/import categories other than direct sql on the database.

    Thanks

    #29742

    phonebook
    Lifetime Member
    Post count: 27

    Thanks. 😉

    #29761

    Paolo
    Site Admin
    Post count: 31206

    You’re welcome 🙂

    #29789

    phonebook
    Lifetime Member
    Post count: 27

    To copy the category in the database, is it sufficient to copy the
    wp_terms
    wp_term_relationships
    and
    wp_term_taxonomy

    tables?

    Thanks

    #29791

    Paolo
    Site Admin
    Post count: 31206

    It’s harder than that.

    You should take:

    wp_options
    wp_terms

    In 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

    #30009

    phonebook
    Lifetime Member
    Post count: 27

    Thanks. 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!

    #30110

    Paolo
    Site Admin
    Post count: 31206

    For 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: 33480

    If you attach your CSV file we’ll have a look.

    Thanks

    #30123

    phonebook
    Lifetime Member
    Post count: 27

    Thanks! I did just correct them after the import. 😉

    So making progress doing the GeoTheme -> GeoDirectory conversion. May have more questions, but making progress.

    #30124

    Paolo
    Site Admin
    Post count: 31206

    no thank you! 🙂

Viewing 14 posts - 1 through 14 (of 14 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount