Home › Forums › ACF PRO › Insert into theme – but how? › Reply To: Insert into theme – but how?
I am sure, it’s my poor english. But this was not the answer, I was searching. I read and read through the doc before starting this thread, but an answer of the question where I insert the code snippets is not in the docs.
One answer I found there (and a lot more on youtube videos):
http://www.wpallimport.com/2014/04/28/display-advanced-custom-fields-acf-wordpress-theme/
In short, the best way: Build a child theme (that’s always the ideal way). Add a new individual template file. For a faq page e.g. you could build and add a page-faq.php, see also http://codex.wordpress.org/Template_Hierarchy. If you have fields that should be displayed on every page you can also use the page.php. Insert the code snippets.
The localization in the acf fields editing is NOT the localization, where the fields are displayed (in Frontpage), but rather where the (input) fields are shown in admin backend.
The second way to display ACF in Frontent is using a shortcode, this is documented in ACF docs.
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.