I take advantage of a get_posts()
name with these arguments:
array(6) {
["include"]=> string(14) "1633,1634,1635"
["post_status"]=> string(3) "any"
["post_type"]=> string(10) "attachment"
["post_mime_type"]=> string(5) "picture"
["order"]=> string(3) "ASC"
["orderby"]=> string(8) "post__in"
}
Whereas logged out or logged in as an Admin, it really works superb and returns the objects for 3 photographs. Nonetheless, when the consumer is only a Subscriber/Writer/Editor/Contributor, it returns an empty array.
All plugins enabled/disabled would not make a distinction.
When switching the theme to an official WP theme, the error now not persists.
I’ve dumped all hooks utilizing this (one logged in with subscriber, one with admin), however I discover no appreciable distinction. Case A / Case B. I used to be assuming that the theme alters my arguments to an extent that there are not any outcomes for the altered question. If it is nonetheless the case, how and the place ought to it do this?
The theme is Javo Listing.