WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Magic Fields — how to get duplicate total?

[Resolved] Magic Fields — how to get duplicate total?

  • 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)
  • 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 ‘[Resolved] Magic Fields — how to get duplicate total?’ is closed to new replies.
Skip to toolbar