Display TitleDescriptionCaption of custom images on homepage

admin2025-06-05  3

I want to display the Title/Description/Caption of custom images on my homepage, here is the current code in functions.php file that only displays the image:

<div class="partners-logoarea">
                <?php
                    for ( $count = 1; $count <= 6; $count++ ) {

                        $logo = get_theme_mod( 'unicon_lite_our_partners_logo_'.$count );

                ?>

                    <div class="partners_<?php echo $count; ?>">
                        <img src="<?php echo esc_url($logo); ?>" alt="<?php echo esc_html__('Partner Logo', 'unicon-lite'); ?>" /><br/>
                    </div>
                <?php } ?>
            </div>

What code do I need to add to display each images Title/Description/Caption?

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749104863a316401.html

最新回复(0)