Home › Forums › Front-end Issues › Custom fields only displaying for one post › Reply To: Custom fields only displaying for one post
Hi @raindahl
Could you please share the PHP file for that page? If you could share the JSON or XML export of the field group, that would be great too!
Also, could you please test it by providing the ID manually for the get_field() function like the following?
var_dump(get_field( 'music', 105 ));
Where “105” is the ID of your post that has the custom fields. That code will test if ACF can get the fields correctly. If it can, it means there’s something wrong with your code.
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.