Home › Forums › ACF PRO › update_field firing twice? › Reply To: update_field firing twice?
At the moment, I have changed it. I made my function into a shortcode.
So now in the single.php I am doing echo do shortcode.
I’m getting the same result as before.
Before, I was just calling the function.
echo get_views_counter()
I’ll do a more thorough code review to see if something is coming in late and hitting the page.
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.