Bulk Relationship Editor.

Support MB Relationships Bulk Relationship Editor.Resolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36121
    Warren JohnstonWarren Johnston
    Participant

    I have a few hundred posts that I would like to be able to edit the relationship on.

    So for example I have a posttype called creator and a post type called creations.

    If I wanted to connect 600 creations to one creator - is there a somewhat automated way to do that?

    #36137
    Long NguyenLong Nguyen
    Moderator

    Hi Warren,

    Currently, there is no option to set relationships in bulk. You can create a custom query to get all posts, then add the relationship manually by using the code in that loop.

    MB_Relationships_API::add( $from, $to, $id, $order_from = 1, $order_to = 1 );

    Read more on the documentation https://docs.metabox.io/extensions/mb-relationships/#add
    https://developer.wordpress.org/reference/classes/wp_query/

    #36143
    Warren JohnstonWarren Johnston
    Participant

    Thanks Long - I will see if I can work something out.

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