Home › Forums › General Issues › Homepage with Loop & ACF › Reply To: Homepage with Loop & ACF
Hi @allan.crabtree
If you set the posts home page to appear on a static page (Homepage), then WP will change the query run to only find posts, not find the page (Homepage).
This is a limitation with WP, not ACF.
To get around it, you can load the data specifically from the Homepage using a $post_id parameter on all get_field / has_sub_field functions.
You can read about this here:
http://www.advancedcustomfields.com/resources/how-to/how-to-get-values-from-another-page/
Hope that helps.
Thanks
E
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.