Plugin Author
ILLID
(@mihail-barinov)
Hi,
It is strange indeed.
Please tell me – what WordPress theme you are currently using? Also – what exactly page you want to modify – is it a shop page or maybe search results page?
Regards
@mihail-barinov Thanks for the quick reply! We’re trying to modify all shop pages so that if the in_stock
$_GET key is found, it only shows products that are in-stock. We have a button in place to add/remove the query string on click.
I’m able to replicate this issue on a fairly vanilla install with just WooCommerce (7.4.1) and Advanced Woo Labels (1.62). We’re using Storefront (4.2.0) with PHP 8.0.14. Everything appears up to date.
The issue was that I was missing a $query->is_main_query()
check. The hook above was interfering with this plugins get_posts()
call.