Support

Account

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

Helping

Store repeater data in a variable

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

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

The topic ‘Store repeater data in a variable’ is closed to new replies.