• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

ACF Nested Repeater Fields and Genesis

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › ACF Nested Repeater Fields and Genesis

This topic is: not resolved

Tagged: ACF Nested Repeater Fields

  • This topic has 3 replies, 3 voices, and was last updated 11 years, 11 months ago by Genesis Developer.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 23, 2014 at 7:02 pm #115624
    hophead99
    Member

    I would be enormously grateful if someone could help me with the following.

    I have been using Genesis with ACF for many years but have always struggled to implement Nested Repeater Fields using ACF.
    I am not a web designer who understands a great deal about PHP but I do use a whole bunch of snippets that get me through - anyway I am using the following in my fuctions file which returns my custom fields nice and clean and styled just the way I like:

    add_action('genesis_entry_footer', 'program_material',3);
    function program_material() {
    
    echo '<div class="program">';
    
    if ( is_page() && get_field('session_4a_programme')){
    echo '<div class="prog_sessions">';
    while(has_sub_field('session_4a_programme')){ 
    echo '<div class="sessionprog">';
    echo '<div class="prog_time">' . get_sub_field('time_a') .'</div>', 				
         '<div class="prog_title">' . get_sub_field('title_1_a') .'</div>',
         '<div class="prog_subject">' . get_sub_field('title_subject_a') .'</div>',
         '<div class="prog_speaker">' . get_sub_field('speaker_a') .'</div>',
         '<div class="prog_moderator">' . get_sub_field('moderator_b') .'</div>'; 
    echo '</div>';  
    }
    echo '</div>';  
    }
    
    }

    So the main field session_4a_programme is the parent repeater
    What I need to do is turn the last field - moderator_b into a child repeater with a couple of fields for Name and Company.

    I'm really struggling and would be very grateful to the community if someone could provide me with some suggestions about how I can amend the code above to accommodate the nested repeater functionality

    Kind Regards

    Phil

    https://www.shippinginnovation.com/isss-2014-program/
    July 23, 2014 at 11:04 pm #115653
    essaysnark
    Participant

    This sounds like a question for the ACF folks. Have you tried posting over there?

    July 24, 2014 at 3:19 am #115667
    hophead99
    Member

    Hey

    Thanks for getting back to me - yes I have indeed sent ACF an email on this very subject.
    However the original way of doing this I got from Nick (the geek) on the old forum a couple of years ago - I just thought someone in the General Genesis Community may have come across this issue of Nested Repeater fields before...and may have a solution, I'm sure it's not hugely complicated - but I just can't get my head around it...

    Phil

    July 24, 2014 at 4:27 am #115669
    Genesis Developer
    Member

    i think that process will be like this way

    echo '<div class="prog_time">' . get_sub_field('time_a') .'</div>', 				
         '<div class="prog_title">' . get_sub_field('title_1_a') .'</div>',
         '<div class="prog_subject">' . get_sub_field('title_subject_a') .'</div>',
         '<div class="prog_speaker">' . get_sub_field('speaker_a') .'</div>';
    if( get_sub_field('moderator_b') ) {
        echo '<div class="prog_moderator">' ;
        while ( has_sub_field('moderator_b') ){ 
           echo get_sub_field('name')  .  '<br/>' .  get_sub_field('company') ;
           echo '</div>';
        }
     }

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble