Thanks für pointing to this. You are right, the set function does not add query args, it overrides them. I’ve solved this by checking if post__not_in already exists and adding a new value if so. So it’s not necessary to make it filterable.
Which plugin are you talking about? I’d like to test it.
Peter
Thanks for getting back to me.
I encountered the issue while modifying the WP_Query on an custom archive page.
There are many plugins available which alter the query. You may try Simply Exclude for example.
Could you please test the current dev version which can be downloaded here: https://downloads.wordpress.org/plugin/404page.zip
Thanks,
Peter
I had to switch to a different 404 plugin because of my project’s approaching deadline.
So I can’t test this anymore, sorry.
That’s a pity. Maybe at some point. It worked in my tests.
Marked topic as resolved.