Sorry but the problem persists, please reopen my ticket, thanks!
Hey Florian,
Thanks for updating in! You can use this WP query instead:
$meta_query[] = array(
'key' => 'Xthe_author',
'value' => '342',
'compare' => 'LIKE'
);
$query = array(
'post_type' => 'post',
'meta_query' => $meta_query
);
var_dump( http_build_query( $query ) );
which will give you this query string:
post_type=post&meta_query%5B0%5D%5Bkey%5D=Xthe_author&meta_query%5B0%5D%5Bvalue%5D=342&meta_query%5B0%5D%5Bcompare%5D=LIKE
And if we substitute 342
with the post ID of the team member, the final query string can be:
post_type=post&meta_query%5B0%5D%5Bkey%5D=Xthe_author&meta_query%5B0%5D%5Bvalue%5D={{dc:post:id}}&meta_query%5B0%5D%5Bcompare%5D=LIKE
Kindly let us know how it goes.
Thanks! it works! i am so happy for your help!!
Hi Florian,
Glad that we are able to help you.
Thanks
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.