On a blog single template inside an ACF repeater I need to show/hide a divider, depending on whether an ACF button group is set to YES or NO. Divider should SHOW if acf button group is set to YES. Divider should HIDE if acf button group is set to NO.
Here is what I would like to achieve:
My divider has this class:
.b-blog-content__divider
My ACF button group field has this name/ID:
blog_-rep-_divider_zeigen
Same question as in my other similar post:
Anyone of the pro coders here willing to assist?
@Sridhar => This would be a tutorial request for BricksLabs too 
Answering my own question here. Based on Sridhars solution for my other ACF Repeater Condition (please find here: [SOLVED] ACF Repeater + Condition | Show/Hide Bricks Element if ACF field is empty or not) , I developed this code, which works perfectly fine for me.
add_filter( ‘bricks/element/render’, function( $render, $element ) {
if ( $element->id === ‘mlfhjr’ && class_exists( ‘ACF’ ) ) {
if ( have_rows( ‘blog_-_content_repeater’ ) ) {
// Loop through rows.
$ja_divider = get_sub_field( 'blog_-_rep_-_divider_zeigen' );
//print_r($ja_divider);
if($ja_divider == 'Nein')
{
return false;
}
}
}
return $render;
}, 10, 2 );
@Sridhar If this code is fine, please feel free to add it to the Bricks Conditions Documentation (Filter: bricks/element/render – Bricks Academy)