Relationships Usage

Support MB Relationships Relationships UsageResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27430
    JamesJames
    Participant

    Hi, I want to create a relation between two custom post types and display the custom post fields from other post types using the "view". How can I do that using the relation?

    {% set relationship = attribute( relationships, '52' ) %}
    {% for post in relationship.to %}
    //what data to show?
    {% endfor %}

    #27455
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You can use the helper function rwmb_meta() to get the field value of a post via the proxy mb.. See my short screen record https://share.getcloudapp.com/mXupJRX8

    Get more details here https://docs.metabox.io/extensions/mb-views/#running-php-functions

    #27459
    JamesJames
    Participant

    Thank you 🙂

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