csv import and custom fields

This topic contains 4 replies, has 2 voices, and was last updated by  creagmhor 9 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #9144

    creagmhor
    Expired Member
    Post count: 21

    Hi all,

    I am trying to import my csv file and want to have quite a few custom fields in my listing signup form. My questions are:
    1. Do I have create all the custom fields first in GD places before I do the import?
    2. If so, what name is used for the custom field in the csv column, is it the html variable name?.
    3. Can I get rid of any of the current compulsory fields that are in GD places at present that are relevant to my listings as they dont seem to be easily deleted?

    Thanks

    Joe

    #9154

    Guust
    Moderator
    Post count: 29970

    Hi Joe

    Have a look here as well:
    http://docs.wpgeodirectory.com/core-general/#csv

    1. I am pretty sure you would need to set up the fields first, a CSV cannot create custom fields, it can only populate them.
    2. You should use ” geodir_HTMLvariableName “, ie your html variable name preceded with geodir_
    3. No, see http://docs.wpgeodirectory.com/core-general/#csv for compulsory fields.

    Vikas, can you correct me if I am wrong here?

    #9482

    creagmhor
    Expired Member
    Post count: 21

    Hi Guust,

    Thanks for you help as it answered my query as I had missed the doc you mentioned.

    I am still a bit confused about the difference between the prefix geodir_ and some fields have the prefix post_. Is prefix post reserved for compulsory fields and all custom fields should be labeled geodir_?

    Thanks again,

    Joe

    #9493

    Guust
    Moderator
    Post count: 29970

    Hi Joe, I am not sure about what is labeled post_ and what is labeled geodir_.
    I guess one might be WP specific and the other GD specific.

    I usually just go and have a look at the names of the columns in your database to see what I need to use. Hope that helps

    #9509

    creagmhor
    Expired Member
    Post count: 21

    Thanks Guust,

    I’ll have a look at that and try an import and take it from there.

    Cheers

    Joe

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

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

Open Support Ticket