I’m a frontend designer and WordPress beginner, and basically just read the docs and pieced this together from the ACF site. It’s outputting the unordered list but not the link. Any ideas on what I’m doing wrong?

<?php if( have_rows('show_lineup') ): ?>
  <ul class="show_lineup">
  <?php while( have_rows( 'show_lineup' ) ): the_row();
    $lineup_name = get_sub_field( 'lineup_name' );
    $lineup_link = get_sub_field( 'lineup_artist_link' ); ?>
    <li class="lineup_name">
      <?php if( $lineup_link ): ?>
        <a href="<?php echo $lineup_link; ?>">
      <?php endif; ?>
            <?php echo $lineup_name; ?>
      <?php if( $lineup_link ): ?>
      <?php endif; ?>
  <?php endwhile; ?>
<?php endif; ?>

Read more here: Why isn’t the string from ACF Repeater now being output to HTML?


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: