{"id":15977907,"date":"2022-09-04T16:45:21","date_gmt":"2022-09-04T16:45:21","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/exclude-posts-bug\/"},"modified":"2022-09-04T16:45:21","modified_gmt":"2022-09-04T16:45:21","slug":"exclude-posts-bug","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/exclude-posts-bug\/","title":{"rendered":"Exclude posts bug"},"content":{"rendered":"<p>Nice little plugin, however there&#8217;s a problem: when you call get_posts() on line 76 to find out which ones to exclude, the default is to only return 5 and hence you can only exclude 5 posts. Need to add the parameter for &#8216;numberposts&#8217; =&gt; -1 to get all the excluded posts.<br \/>\nNot sure if the same problem will apply to excluding pages as I only discovered this issue while trying to exclude posts.<\/p>\n","protected":false},"template":"","class_list":["post-15977907","topic","type-topic","status-publish","hentry","topic-tag-exclude-posts"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15977907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15977907\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15977907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}