Fix for title, captions and descriptions not appearing
-
I’m glad to see this plugin being updated again!
But it is still broken in a number of places.
Here’s what I did to fix the captions issue:At the bottom of portfolio-slideshow\src\views\slides.php
before the last three lines at the bottom
</div>
<?php endforeach; ?>
</div>add this – and the title, excerpt and description will appear:
` <?php
$attachment = get_post( $slide[‘image’] );
$title = $attachment->post_title;
$exerpt = $attachment->post_excerpt;
$content = $attachment->post_content;
?>
<div class=”slideshow-meta”>
<p class=”slideshow-title”>
<?php echo sanitize_text_field( $title ); ?>
</p>
<p class=”slideshow-caption”>
<?php echo sanitize_text_field( $exerpt ); ?>
</p>
<div class=”slideshow-description”>
<?php echo sanitize_text_field( $content ); ?>
</div>
</div>
- The topic ‘Fix for title, captions and descriptions not appearing’ is closed to new replies.