fix #56
This commit is contained in:
parent
54eb7a960f
commit
de62e95102
1 changed files with 3 additions and 0 deletions
|
@ -91,6 +91,9 @@ class Post {
|
||||||
$image_ids[] = $attachment->ID;
|
$image_ids[] = $attachment->ID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$image_ids = \array_unique( $image_ids );
|
||||||
|
|
||||||
// get URLs for each image
|
// get URLs for each image
|
||||||
foreach ( $image_ids as $id ) {
|
foreach ( $image_ids as $id ) {
|
||||||
$thumbnail = \wp_get_attachment_image_src( $id, 'full' );
|
$thumbnail = \wp_get_attachment_image_src( $id, 'full' );
|
||||||
|
|
Loading…
Reference in a new issue