admin管理员组文章数量:1130349
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?
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?
本文标签: Display TitleDescriptionCaption of custom images on homepage
版权声明:本文标题:Display TitleDescriptionCaption of custom images on homepage 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749104836a2316584.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论