You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is currently possible to create a PostCollection with an array of PostModels. However, this will cause issues if a plugin attempts to call the getQuery Method. Query is only set if a PostCollection is created with a WP_Query.
The text was updated successfully, but these errors were encountered:
maikelRAOW
changed the title
Initialising a PostCollection with an array
Initialising a PostCollection with an array can cause issues
Jul 20, 2021
@ChrisRAoW You could generate a query that selects all the IDS of the posts that are currently in the collection. $this->query = new WP_Query('post_type' => $type, ‘post__in' => $ids);
It is currently possible to create a PostCollection with an array of PostModels. However, this will cause issues if a plugin attempts to call the getQuery Method. Query is only set if a PostCollection is created with a WP_Query.
The text was updated successfully, but these errors were encountered: