Hi, I am totally new to AFC and have a presale question. I am wondering how to integrate the code into my theme? So that I can display the values.
Where I have to insert it? Into functions.php? Or into different template.php files? Or will I get php files from ACF and have to upload them only?
I can’t find an answer in the documention.
Hi @Pepperle
Please read over the getting started chapter in the docs. ACF will create the interfaces for you to add data to a post. Then you will need to edit your theme files to output the data in HTML.
You can also go ahead and start using the free version here: http://wordpress.org/extend/plugins/advanced-custom-fields/
Thanks
E
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.
Hi @Pepperle
Perhaps I misunderstood your question.
Please see the ‘Getting Started’ chapter in the docs:
http://www.advancedcustomfields.com/resources/
There are articles such as ‘Displaying values in your theme’
The topic ‘Insert into theme – but how?’ is closed to new replies.
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.