Support › MB Relationships › Relationship WP_Query for Oxygen Builder [Repeater] componentResolved
this can be easily done with mb views but for a reason, need oxygenbuilder repeater component to visually layout each field.
pls see screenshot -> https://pasteboard.co/KeLh62g.png
what should be entered in the manual wp_query field?
I'm not sure how the query of Oxygen Builder works but you can check the query param to get the relationship here https://docs.metabox.io/extensions/mb-relationships/#posts
I created a relationship between post to expert (post cpt). Author will create a expert that will link/relate to a post.
I'm trying to display the linked/related posts on the author archive page.
Im using the tutorial from metabox doc but getting a Invalid argument supplied for foreach() error.
Invalid argument supplied for foreach()
$auid = get_the_author_meta( 'ID' );
$args = array(
'author' => '$auid',
'post_type' => 'post'
$my_query = new WP_Query( $args );
'id' => 'expert-challenge',
'to' => $my_query->posts, // Set to $my_query.
while ( $my_query->have_posts() ) : $my_query->the_post();
// Display connected pages
foreach ( $post->connected as $p ) :
// More code here.
echo '<pre>'; var_dump($my_query->posts) ; echo '</pre>';
resolved. pls close this
Sorry to revived old thread, but how do you solve this?
Did you find the solution to display MB relationship with Oxygen repeater?