Home › Forums › Front-end Issues › Problem with get_fields › Reply To: Problem with get_fields
Its better to create an options page for this and receive you values via get_field( 'field_slug', 'option' );
On your index.php you’re receiving all your posts, so the index.php has no post id. You can create an page template (with custom post query for your posts) and working with this, but an option page is easier for this.
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.