Home › Forums › Add-ons › Repeater Field › Repeater field with IF/ELSE based on sub_field value › Reply To: Repeater field with IF/ELSE based on sub_field value
Yeah, I made the switch the $post_type var… but, doesn’t work.
I even added some echos so see if I could get the values to print
$post_type = get_sub_field('content_type'); echo $post_type; $posts_per_page = get_sub_field('items_per_row');echo $posts_per_page;
But nothing displays (I also tried after removing the echos below, to get rid of the errors but no values from the ACF fields show). I also added a default value to the switch, just in case, and it doesn’t print either
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!
© 2023 Advanced Custom Fields.