Oxygen builder: Displaying a related posts field in a repeater

Support MB Relationships Oxygen builder: Displaying a related posts field in a repeaterResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33972
    MarkMark
    Participant

    Hey folks! I'm using Oxygen 3.9 with the official support for Meta Box.

    I have 2 custom post types: Jobs and Companies.

    I have created a relationship between these 2.

    I have created a Repeater querying all the Jobs post type. In the same repeater, I also want to display the featured image that is attached to the Company related to each job but I cant figure out how to do that.

    #33973
    MarkMark
    Participant

    I.e. I have post type A and B, and I have created a relationship between both. I have a repeater that is querying A, and I want to display the featured image of B in the same repeater.

    #33977
    Long NguyenLong Nguyen
    Moderator

    Hi Mark,

    To display the connected posts with coding, you can follow this documentation https://docs.metabox.io/extensions/mb-relationships/#getting-connected-items

    In case of using Oxygen Builder, please reach out to them if you have any issues with installation, configuration, compatibility, or usage.
    Refer to our support policy https://support.metabox.io/topic/support-policy/

    #34218
    kapitanpejsek@gmail.com[email protected]
    Participant

    I achieved a minor success following this tutorial. https://youtu.be/D1h5stQdW6c
    It works perfectly in a single post template. Trouble comes with repeater card and using just some related data inside it. That is what I'm struggling with. The repeater inside of repeater needs to be the last element of the card, because it somehow breaks the query below it.

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