Home Forums Add-ons Repeater Field How to show PDF's by title? Reply To: How to show PDF's by title?

  • I use the repeater and add 2 parts:
    – File
    – Text Field

    Then I do this:

    			<?php if(get_field('downloads')): ?>
    			<ul class="downloads">
    			<?php while(has_sub_field('downloads')): ?>
    				<li><img src="<?php echo $image_path; ?>adobe_pdf_icon.png" width="31" height="33" /><a href="<?php the_sub_field('file'); ?>" target="_blank"><?php the_sub_field('file_name'); ?></a></li>
    			<?php endwhile; ?>
    			<?php endif; ?>

    Not sure if that helps you or not