- This topic has 5 replies, 2 voices, and was last updated 6 months, 3 weeks ago by .
I'd like to display related posts registered with
MB_Relationships_API::register()in a table created with Posts Table Pro.
Posts Table Pro can display a column with any custom field, including the ACF relationship field. This is perfect for my needs, but I'd like to use MB instead of ACF (I have a lifetime MB bundle, and I prefer it to ACF).
The issue is that the relationships are stored by MB in a custom table, not in a custom field, which means that Posts Table Pro (and any other solution which looks at custom fields) can't directly access the list of related posts for a given post.
I'm thinking that the easiest way to solve this would be to register a custom field which keeps (and updates) an array of the related post IDs from the
wp_mb_relationshipstable for the post in question, and looks up the post title and URL for each, so that they can be passed to Posts Table Pro.
Can someone tell me if I'm on the right track here? I'd be very grateful for any suggestions, because I'm not that experienced with this stuff and I'm still learning to use MB to its full potential.
Thaks very much,
- You must be logged in to reply to this topic.