Custom Fields
Re-Envisioned
Support MB Relationships MB Relationships – API for setting relationships

  • Creator
    Topic
  • #8359
    ecurtain
    Participant

    Are there functions to programmatically set a specific relationships between two posts?

    For example, if I have a MB_relationship for posts_to_pages,
    and I want to link post #1 to page #2, is there a way to do that through code?

    My current setup has a *lot* of links through a custom taxonomy, and so I’m interested in writing a script to convert those into MB_Relationship links.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #8369
    Anh Tran
    Keymaster

    Hi, I’ve just added the CRUD API to the extension. I will release the new version soon.

    PS: Just released new version 1.1.0. Please see this documentation for usage.

    #8387
    ecurtain
    Participant

    Nice! This should allow me to finish my migration tool – thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘MB Relationships – API for setting relationships’ is closed to new replies.