Show Posts related to User - CPT / ACF + WP-Query String - Continued

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:

And if we substitute 342 with the post ID of the team member, the final query string can be:

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.


This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.