Home Forums Backend Issues (wp-admin) Help for newbie – input test data on backoffice


Help for newbie – input test data on backoffice

  • Hello.
    I just installed the advanced-custom-fields plugin and create the first custom field.
    How can I input some test data to test the frontend?


  • Hi @jmffsilva

    If you’ve created some custom fields and set the location to for example “posts”:

    1. Go to an existing post or create a new one
    2. Find the new custom fields (probably below the wyswyg editor)
    3. Input whatever data you want in there
    4. In your theme.. open up single.php (this is the template file WordPress uses for single posts)
    5. Output the data.. if it’s a regular input field like a text, textarea, number, url etc. you can simply do <?php the_field('field_name'); ?>. Make sure to change field_name to the actual fieldname of the field you want to output.

    For more advanced examples and to read up on more I recommend you check out the documentation where you can read and find code snippets for each individual field:

  • @jonathan Thanks! Much more easier than I expected 🙂

  • No problem!

    Feel free to contact us if you need further help with getting started with ACF.
    The documentation should be a great help too.

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

You must be logged in to reply to this topic.