Support

Account

Home Forums Add-ons Options Page I'd like to divide the data for repeater field.

Unread

I'd like to divide the data for repeater field.

  • I’d like to use the same code(template) for each environment.
    and I use the code below but it doesn’t work well.

    when front page, I’d like to use the custom fields of Option.
    In the other case, I’d like to use custom fields as each page.

    the code is below.
    when the front page, it doesn’t work.

    <?php
    if(is_front_page()){
    $contents = array(‘section-set’,’option’);
    }else{
    $contents = ‘section-set’;

    }
    ?>
    <?php if( have_rows($contents) ): ?>
    <?php
    while ( have_rows( $contents ) ): the_row();
    ?>

    Does anyone know the solutions?

    Regards.

Viewing 1 post (of 1 total)

The topic ‘I'd like to divide the data for repeater field.’ is closed to new replies.