• Resolved madideas

    (@madideas)


    Nice little plugin, however there’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 ‘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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author rbaer

    (@rbaer)

    Thanks for bringing up this problem. I have to admit that I’ve tested only a few posts to exclude, not aware of the default of 5 posts of get_posts().

    I’ve created an issue on GitHub where the development of this plugin takes place:
    https://github.com/rolandbaer/list-last-changes/issues/17

    Plugin Author rbaer

    (@rbaer)

    In the version 1.0.1 this bug is fixed. Excluding pages was not affected by this problem as the used function get_pages() has a default for number is 0 (= all pages).

    Thread Starter madideas

    (@madideas)

    Thanks for the quick fix!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Exclude posts bug’ is closed to new replies.