Answer the question
In order to leave comments, you need to log in
Which plugin is suitable for displaying a lightbox in post announcements?
You need a plugin so that you can set several pictures in the post editor. The first thumbnail will be displayed in the category, and by clicking on it, a lightbox will open and you can scroll through and watch other pictures that were set in the admin panel.
Can you please tell me if you are familiar with a plugin with similar functionality?
Answer the question
In order to leave comments, you need to log in
In order to attach several photos to a post, the Attach Post Images
plugin cyriltata.blogspot.ru/2014/03/wordpress-plugin-att...
You also need to install the easy fancybox plugin to display the lightboxes themselves
https://ru.wordpress. org/plugins/easy-fancybox/
You can display
photos (when using the Attach Post Images plugin) in the template like this:
<?php
$images = twp_get_post_images(get_the_ID());
foreach ($images as $im) {
$thumb_url = wp_get_attachment_image_src($im->id, 'thumbnail-size', true);
?>
<a href="<?php echo $thumb_url[0]; ?>" class="fancybox" rel="group">
<img src="<?php echo $thumb_url[0]; ?>">
</a>
<?php
}
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question