Support

Account

Home Forums General Issues Post details on different page based on checkbox selection Reply To: Post details on different page based on checkbox selection

  • In my research, I read that you can’t do a new WP_Quey using repeater fields so I created a custom post type using the same ACF fields. The problem is on my ‘Biology’ page for example, I have two tutors who teach biology and that is checked in the backend but on the front end only one tutor shows. I’m using this query to get tutors who are checked for biology

    $args = array(
                    'post_per_page'	=> 10,
                    'post_type'		=> 'pg-tutor',
    				'meta_query' => array(
                        array(
                            'key'     => 'subject',
                            'value'   => 'biology',
                            'compare' => 'LIKE',
                        ),
                    )
                    );

    Any suggestions are appreciated.