Support

Account

Home Forums General Issues Get Group Subfield Value via Shortcode Reply To: Get Group Subfield Value via Shortcode

  • Something like this?

    function group_shortcode($atts)
    {
        $group = get_field($atts[0]);
        foreach($group as $key => $value) {
            print_r($value);
        }
    }
    add_shortcode('acf_group', 'group_shortcode');

    then use [acf_group GROUPNAME]