• Resolved relish1227

    (@relish1227)


    How do I get the total duplicates?

    In Flutter, you used:

    $fieldTotal = getGroupDuplicates ($fieldName);

    However, this is returning “1” when I know there are 6.

    It looks like the documentation on this isn’t finished. Any help?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter relish1227

    (@relish1227)

    Okay, here’s a solution. Maybe there is another, but this works.

    $fieldName = "casestudy_gallery_image";
    $fieldTotal = count(get_field_duplicate($fieldName));

    That didn’t work for me, it looks more suited to Flutter than Magic Fields

    For Magic Fields I used this:

    $fieldName = "casestudy_gallery_image";
    $fieldTotal = count($fieldName);
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Magic Fields — how to get duplicate total?’ is closed to new replies.