Count Repeater Items

Support MB Views Count Repeater Items

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35975
    ChrisChris
    Participant

    Is there a way to tell views to count the number of cloned items?

    Example, in my post type I clone the section five times. I want to output "5" on the page.

    #35979
    Long NguyenLong Nguyen
    Moderator

    Hi Chris,

    You will have an array of items when retrieving the clone field value. And follow this topic to know how to count items with Twig https://stackoverflow.com/questions/17665271/counting-the-number-of-elements-in-array

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.