In the admin, how can you list thumbnails instead of titles for a custom post type?

I would look into adding a custom post column for that post type which shows the image you’d like to. See this link. edit: here’s a working example. function add_column_header_298736( $defaults ) { $defaults[ ‘image’ ] = ‘Image’; return $defaults; } add_filter( ‘manage_results_posts_columns’, ‘add_column_header_298736’, 20 ); function add_column_content_298736( $column_name, $post_id ) { if ( $column_name … Read more

ACF query-pass field value

SOLUTION: $posts = get_field(‘choose_office’); if( $posts ): foreach(array_slice($posts, 0, 1) as $post): setup_postdata($post); $post_ID = get_the_ID(); endforeach; wp_reset_postdata(); endif; $args = array( ‘meta_query’ => array( array( ‘key’ => ‘office’, // name of custom field-post object ‘value’ => $post_ID, //name of relationship field ‘compare’ => ‘LIKE’ ), ), ); Solution from question: https://stackoverflow.com/questions/46816190/using-post-id-inside-reverse-acf-relationship-querie