This commit is contained in:
Matthias Pfefferle 2019-09-27 11:37:15 +02:00
parent 54eb7a960f
commit de62e95102

View file

@ -91,6 +91,9 @@ class Post {
$image_ids[] = $attachment->ID;
}
}
$image_ids = \array_unique( $image_ids );
// get URLs for each image
foreach ( $image_ids as $id ) {
$thumbnail = \wp_get_attachment_image_src( $id, 'full' );