Fix: Remove thumb from attachments

This commit is contained in:
weryques 2018-02-23 14:13:44 -03:00
parent 0af3aacf2b
commit dd9ac397a3
1 changed files with 1 additions and 1 deletions

View File

@ -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);