Meta Box
Support › MB Relationships › Bulk Relationship Editor.Resolved
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?
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/
Thanks Long - I will see if I can work something out.