Hello,
in the Slider of “vacation-lite” is always the same caption. The title is different but the caption is the same of the last slide.
the code:
<?php
$i=1;
foreach($id_arr as $id){
$title = get_the_title( $id );
$post = get_post($id);
$content = wp_trim_words( get_the_content(), 40, ‘…’ );
?>
<div id=”slidecaption<?php echo $i; ?>” class=”nivo-html-caption”>
<div class=”top-bar”>
<h2><?php echo $title; ?></h2>
<p><?php echo $content; ?></p>
“><?php echo esc_html(get_theme_mod(‘slidelinktext’,__(‘Learn More’,’vacation-lite’))); ?>
</div>
</div>
<?php $i++; } ?>
Please can help me.
I mean, that the caption doesn’t access to post ID.
Thanks!