Support » Plugin: Import any XML or CSV File to WordPress » how to retroactively update the post parent field

  • Resolved SRD75

    (@srd75)


    Hi Folks,

    I would like to update the parent post ID of some existing CPT posts.

    I believe the unique identifier would be {title} – {photourl}.

    How would I go about updating the CPT posts’ parent post ID, please?

    Thanks,
    Steve

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter SRD75

    (@srd75)

    Hi Folks,

    I think this tute will solve the problem for me.

    Cheers.

    Thread Starter SRD75

    (@srd75)

    Hi,

    In my CSV, I created a “Parent ID” column with the post_ID of the parent item.

    I then assigned this ID to Post Parent > Set post parent field:

    https://i.imgur.com/fN4xGzJ.jpg

    However, this has not worked.

    Should the Parent be set with the Title of the post, instead?

    Cheers,
    Steve

    Plugin Author WP All Import

    (@wpallimport)

    Hey @srd75,

    The ID should work fine, but please try using the “Set with XPath” option instead of “Set post parent”.

    Let me know how it goes.

    Thread Starter SRD75

    (@srd75)

    Thanks, that worked.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.