Search
 
SCRIPT & CODE EXAMPLE
 

PHP

ACF Photo Gallery Output

<?php 
$images = get_field('gallery');

if( $images ): ?>
    <ul>
        <?php foreach( $images as $image ): ?>
            <li>
                <img src="<?php echo esc_url ( $image['full_image_url'] ); ?>" alt="<?php echo esc_attr( $image['alt'] ); ?>" />
                <p><?php echo esc_html( $image['caption'] ); ?></p>
            </li>
        <?php endforeach; ?>
    </ul>
<?php endif; ?>
Comment

PREVIOUS NEXT
Code Example
Php :: stripslashes in php 
Php :: laravel add crf token form 
Php :: laravel take value from different array by key 
Php :: return view in laravel controller 
Php :: twig for loop key 
Php :: search by date using carbon laravel 
Php :: wp get tagline 
Php :: json_encode() in php 
Php :: wp tax_query in 
Php :: Remove public from the url in the codeigniter 
Php :: how to get last id in database codeigniter 4 
Php :: laravel create new migration 
Php :: print variable php 
Php :: prevent xss php 
Php :: php get date between two dates 
Php :: php print_r 
Php :: php echo selected option 
Php :: php header redirect with parameters 
Php :: laravel create or update eloquesnt 
Php :: how to join two tables in laravel 
Php :: wordpress get local date 
Php :: PHP sqrt() Function 
Php :: laravel find many 
Php :: how convert the date and time to integer in laravel 
Php :: Adding data to a laravel collection 
Php :: foreach in laravel 
Php :: Laravel adding Foreign Key Constraints 
Php :: php array sum 
Php :: gd php extension 
Php :: laravel without global scope 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =