Support

Account

Home Forums Add-ons Repeater Field Store repeater data in a variable

Helping

Store repeater data in a variable

    • Philip

    • August 16, 2013 at 2:05 pm

    What I am trying to get is the data from a Repeater Field along with some basic html to be all stored in a variable so that it can be used else where on the page. The repeater field that I am working with has 4 sub fields, I would like to store this data in a simple 4 column wide table and then in turn store the data in the table in a variable to be echoed else where in the page. I have tried working with the examples on the documentation pages but have yet to get it to work. Any suggestions?

    • Elliot

    • August 16, 2013 at 2:47 pm

    Hi @philip

    I would start with some basic code like:

    
    $repeater = get_field('repeater');
    

    The rest is up to you, the developer.

    Cheers
    E

Viewing 2 posts - 1 through 2 (of 2 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.