Support

Account

Home Forums Backend Issues (wp-admin) How to create a dynamical adapting number of text fields and or images.

Solved

How to create a dynamical adapting number of text fields and or images.

    • rpk

    • December 2, 2013 at 11:15 am

    Is it possible to deal with a changing number of entered objects (e.g. images and or list items). I have created an advanced post type and assigned a set of advanced custom fields to it. The content of each object differs. On one i would have e.g. 3 images and 4 list items and on another e.g. 9 images and 1 list item. Is there already a way for the user, entering the data, dealing with that issues. Because at the moment each data has to have a predefined custom field as far as i can see.
    But is there a way, after you filled out e.g. a text field for a list item, that either a new empty text field gets added automatically or that the user has the opportunity to add another via an add button? Is something like that already possible with acf? Haven’t found anything related in the docs nor the forums. But it was already difficult to find the right and fitting topic description. :/ Anyway thanks in advance and best regards Ralf

    • Elliot

    • December 3, 2013 at 10:08 am

    Hi @rpk

    What you are describing is a perfect fit for the repeater field add-on:
    Check out the demo video to learn more:
    http://www.advancedcustomfields.com/add-ons/repeater-field/

    Thanks
    E

    • rpk

    • December 4, 2013 at 10:51 am
    This reply has been marked as private.
    • Elliot

    • December 4, 2013 at 11:27 am

    Hi @rpk

    I can’t give you an accurate reply for your first 2 questions as they are written a bit confusing, but casically, think of the repeater field as an XML table where the USER can ONLY create rows, not columns.

    You define the columns (image, caption, link, etc)

    And the USER creates all the rows of data

    As for the licensing, you can use your repeater field on any website you create!

    Thanks
    E

    • rpk

    • December 4, 2013 at 11:54 am
    This reply has been marked as private.
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.