Last active
December 4, 2022 21:05
-
-
Save wpflames/ef3f0774763a06acc38cbf25696a9dad to your computer and use it in GitHub Desktop.
ACF Option Pages with Repeater Group and File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Repeater / Group / File --> | |
<div class="download"> | |
<?php if( have_rows('download_repeater', 'option') ): ?> | |
<?php while( have_rows('download_repeater', 'option') ): the_row(); ?> | |
<?php if( have_rows('download_group', 'option') ): ?> | |
<?php while( have_rows('download_group', 'option') ): the_row(); | |
$title = get_sub_field('title', 'option'); | |
$pdf = get_sub_field('pdf', 'option'); | |
?> | |
<a class="download-item" href="<?= $pdf; ?>"> | |
<h4 class="download-item-title"><?= $title; ?></h4> | |
<img class="download-item-icon" src="<?php theme_url();?>/assets/images/icons/pdf.svg" alt="Letöltés"> | |
</a> | |
<div class="divider"></div> | |
<?php endwhile; ?> | |
<?php endif; ?> | |
<?php endwhile; ?> | |
<?php endif; ?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment