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 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.