Forums

Posts 2 Posts
[resolved] Creating child posts programatically (2 posts)

  1. rsandilands
    Member
    Posted 6 months ago #

    Hi there

    I have 2 custom post types, "Actor" and "Showreel"

    An actor can have multiple child showreels. I can make this all work fine in WordPress and display an actor with their child showreels fine.

    However I'm wanting to parse an xml file that has actor information and all showreels for an actor.

    So entering actors into the wordpress database is done by parsing the xml file and using wp_insert_post

    However I'm wondering when I come to the child elements that list the associated showreels, how best to deal with them. Ideally I'd create them as child posts of the actor programmatically using posts 2 posts api but not sure if this is possible.

    Any clues appreciated.

    http://wordpress.org/extend/plugins/posts-to-posts/

  2. scribu
    Member
    Plugin Author

    Posted 6 months ago #

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.