Home › Forums › Front-end Issues › ACF with enfold theme › Reply To: ACF with enfold theme
Hi @dannhanks
It seems that the global $post;
method is not working for your case.
The problem is the get_field() function doesn’t know the right post for each excerpt. To fix it, you need to pass the ID of the post. Could you please ask the theme author how to get the ID of the post when you use the “avf_post_slider_entry_excerpt” hook? Is it possible that the ID is passed in the $entry
variable?
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.