Home › Forums › General Issues › Count total amount of flexible content used? › Reply To: Count total amount of flexible content used?
When you are not on the page for the “Post” you need to include the post ID when calling ACF function, examples:
have_rows('field name', $post_id);
get_field('field name', $post_id);
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.