Closed rolandbaer closed 2 years ago
According to the documentation (https://developer.wordpress.org/reference/functions/get_pages/) the pages should not be affected as the default for numbers is 0 ("number (int): The number of pages to return. Default 0, or all pages").
posted by user madideas on wordpress.org (https://wordpress.org/support/topic/exclude-posts-bug/):
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 ‘numberposts’ => -1 to get all the excluded posts. Not sure if the same problem will apply to excluding pages as I only discovered this issue while trying to exclude posts.