• Hello

    I am trying to import a post meta key and value as in table postmeta:

    meta_key = “_links_to_target”
    meta_value = “_blank”

    My csv record looks like this:
    “tax__links_to_target”
    “_blank”
    (along with the other post fields of course)

    I also tried this:
    “tax_links_to_target” (only 1 underscore)
    “_blank”

    In both cases it imported the post data, but not the taxonomy data.

    Bug? any ideas?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takuro Hishikawa

    (@hissy)

    Simply use _links_to_target as header key

    Thread Starter fcrick

    (@fcrick)

    Hi,

    Many thanks for your great help!

    Importing post meta works now, I could even import acf fields.

    The last hurdle I can’t seem to solve is importing my custom categories for my custom post type (both created with CPT UI).

    The category, as exported using standard wordpress xml custom post type export, looks like this:

    <category domain=”presstype” nicename=”web-ressources”><![CDATA[Web Ressources]]></category>

    To assign the category “Web Ressources” to my imported post,
    – what does the field name need to be in my csv file?
    – should I use “Web Ressources” or rather “web-ressources” as value?

    For field name I tried “presstype” and “tax_presstype”, both did not work.

    Thanks for your advice

    Thread Starter fcrick

    (@fcrick)

    Nevermind, got it working now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not importing post meta’ is closed to new replies.