Support

Account

Home Forums ACF PRO Insert into theme – but how?

Solved

Insert into theme – but how?

  • 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’

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.