How to query a Post field in a Group

Support MB Group How to query a Post field in a Group

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36369
    Macky McCormackMacky McCormack
    Participant

    Hi,

    I have two CPTs, Retreats and Accommodation Types

    Within Retreats I have a cloneable field Group containing a Post select advanced field which selects posts from the Accommodation Type CPT, and a number field.

    When building a singular post template for Retreats CPT I need to be able to query the data in the group, including the post that is selected in the Post field.

    How do I do this?

    Thanks

    #36371
    Macky McCormackMacky McCormack
    Participant

    EDIT: When I 'query' - I am actually wanting to build a repeater in Oxygen Builder that queries the cloneable Group - so I can access the content from the group (including the linked posts) via dynamic data for each instance of the cloneable group. I hope that makes sense!

    #36383
    Long NguyenLong Nguyen
    Moderator

    Hi Macky,

    You can follow this documentation to know how to get the subfield value in a group.
    https://docs.metabox.io/extensions/meta-box-group/#getting-sub-field-values

    If you use Oxygen builder to create the template, please contact their support to ask for help with this case. They have an integration plugin with Meta Box to display the field value.

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