Aleš Sýkora / August 28, 2023 / 0 comments

Bricks: Get ACF Radio field Value and Label

Post summary: This tutorial is made for Brics Builder users who you use ACF Radio field set to return Array and wants to get the Value or Name of the radio selected. Make sure your ACF radio field is set to return Both (Array) and your options contains both of them like this: After the Bricks Builder…

This tutorial is made for Brics Builder users who you use ACF Radio field set to return Array and wants to get the Value or Name of the radio selected.

Make sure your ACF radio field is set to return Both (Array) and your options contains both of them like this:

management : CEO guys
teacher : Teacher guys

After the Bricks Builder version 1.7.2, you can get the values and labels from all ACF choice fields like Select, Checkbox, Radio Button, and Button Group. You just need to add the :value filter to render the value instead of the label.

How to get the value and label in Bricks then?

{ACF_FIELD_SLUG} renders the label 
{ACF_FIELD_SLUG:value} renders the value

Fuel my passion for writing with a beer🍺

Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻

0 comments

Share Your Thoughts