Tweaked the meta_query to add
. '"' after
$curauth->id to prevent some incorrect matches
$args = array( 'post_type' => 'post', 'meta_query' => array( array( 'key' => 'participants', 'value' => '"' . $curauth->id . '"', 'compare' => 'LIKE' ) ) ); $wp_query = new WP_Query(); $wp_query->query( $args ); while ($wp_query->have_posts()) : $wp_query->the_post(); get_template_part( 'partials/loop', 'resources' ); endwhile;
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.