Yith fields are not showing up on Homepage
-
I want to Customize the Yith Plugin for which I want to add some custom fields with Existing fields. I am getting fields from ACF and adding them to an array ACF Fields are showing up in Yith Setting but only a few are showing up in the Homepage and other site pages. Here is my code;
function ta_yith_woo_compare($fields){ $acf_fields_groups = acf_get_fields(5258); $labels = array(); foreach($acf_fields_groups as $grp) { $group_id = $grp['ID']; $sub_fields = $grp['sub_fields']; foreach($sub_fields as $fld){ $labels[$fld['name']] = $fld['label']; } } $fields =$fields + $labels; return $fields; }
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Yith fields are not showing up on Homepage’ is closed to new replies.