Support

Account

Home Forums Add-ons Repeater Field Post Object in Repeater Field. Need Rows Count Reply To: Post Object in Repeater Field. Need Rows Count

  • Hi @phej

    That’s weird. As you can see, the var_dump() returns array(2), which mean the count() function should return “2” too. Could you please try it like this:

    echo count(get_field( 'positions' ));

    And:

    echo count(get_field( 'positions', 10 ));

    If it still returns ‘1’, could you please open a new ticket and provide temporary credentials to your site here: https://support.advancedcustomfields.com/new-ticket?

    Don’t forget to include the URL to this thread and let know where you can find the code in your template file.

    Thanks 🙂