• Hi. I have been trying to figure out a solution for awhile now, and can’t seem to come up with anything.

    What I have is a slideshow running on the front end that I would like to insert or remove content from automatically. It uses an ACF repeater field in a custom post type called ‘readerboard’.

    The reason for this is there is a readerboard that is constantly looking at this page and displaying the content. There are actually two readerboards and the way it’s set up is ‘www.website.com/readerboard/town1’ and ‘www.website.com/readerboard/town2’. The only thing on these pages is a Nivo Slider set up as:

    <?php while ( have_posts() ) : the_post(); ?>
    <div id="slider" class="nivoSlider">
         <?php
         // check if the repeater field has rows of data
         if( have_rows('readerboard_slides') ):
              // loop through the rows of data
              while ( have_rows('readerboard_slides') ) : the_row();
                  $image = get_sub_field('readerboard_slide_image');
                  // display a sub field value
                  echo '<img src="' . $image['url'] . '" />';
              endwhile;
         else :
              // no rows found
         endif;
         ?>
    </div>
    <?php endwhile; // end of the loop. ?>

    Basically I’m trying to figure out how to get the loop to automatically refresh when the page is updated, or at a specific time each day. Or be told I’m drunk, go home. ??

  • The topic ‘Automatically Update Loop With New Content’ is closed to new replies.