Selecting custom taxonomy in the query editor doesn’t work correctly.
Made template changes are restored and a new template in format “TAXONOMY PRODUCT CAT N” is created.
Logs have this error:
[22-Feb-2023 10:55:53 UTC] PHP Notice: Undefined index: group in /home/public_html/wp-content/plugins/cwicly/core/includes/dynamic/query/args.php on line 60
[22-Feb-2023 10:55:53 UTC] PHP Notice: Undefined index: group in /home/public_html/wp-content/plugins/cwicly/core/includes/dynamic/query/args.php on line 68
Open the Query Editor and select custom taxonomy. Taxonomy is created using CPT UI.
I have removed all custom post types and taxonomies, have disabled all the plugins (except WooCommerce and Cwicly) and I still have the same issue. When I save modifications for the “Products by Category” template first time - changes are saved. When I make modifications again and save it for the second time, then the template is reverted to the previous revision and a new “TAXONOMY PRODUCT CAT N+1” template is created.
My newrlic is full of errors pointing to URL path
/wp-json/cwicly/v1/single_make_css
Error message mysqli_real_connect(): Passing null to parameter #7 ($socket) of type ?string is deprecated.
Every second time editing “PRODUCTS BY CATEGORY” template, a new template “TAXONOMY PRODUCT CAT N” is created, and “PRODUCTS BY CATEGORY” template is restored to its initial state.
And every second time editing “PRODUCTS BY CATEGORY” template and saving it, everything works as it should be, and the template is updated. But only till the next save. Because saving again it will come back to its initial state again and a new template “TAXONOMY PRODUCT CAT N” will be created.
Until the bug is addressed by the WooCommerce team, I would suggest to create a custom template by setting the visibility condition shown in the screenshot below.