Fix: Remove thumb from attachments
This commit is contained in:
parent
0af3aacf2b
commit
dd9ac397a3
|
@ -299,7 +299,7 @@ abstract class Repository {
|
|||
'post_type' => 'attachment',
|
||||
'post_per_page' => -1,
|
||||
'post_parent' => $entity->WP_Post->ID,
|
||||
'exclude' => get_post_thumbnail_id()
|
||||
'exclude' => get_post_thumbnail_id($entity->WP_Post->ID)
|
||||
];
|
||||
|
||||
$attachments = get_posts($attachments_query);
|
||||
|
|
Loading…
Reference in New Issue