Fixes attachments query for theme not loading all attachments.

This commit is contained in:
Mateus Machado Luna 2019-10-09 12:42:57 -03:00
parent 1653a33820
commit 02d5b031c8
1 changed files with 4 additions and 4 deletions

View File

@ -93,10 +93,10 @@ class Item extends Entity {
}
$attachments_query = [
'post_type' => 'attachment',
'post_per_page' => -1,
'post_parent' => $item_id,
'exclude' => $to_exclude,
'post_type' => 'attachment',
'posts_per_page' => -1,
'post_parent' => $item_id,
'exclude' => $to_exclude,
];
$attachments = get_posts( $attachments_query );