Forums › Forums › Search & Filter Pro › Filter for custom post has stopped working
Tagged: No results, woocommerce
- This topic has 19 replies, 2 voices, and was last updated 5 years, 3 months ago by
Trevor.
-
Anonymous(Private) April 21, 2020 at 8:20 am #240707
Hi Trevor – thanks for the response.
If the WooCommerce product filter is disabled the original filter still doesn’t work. Neither can I find pre_get_posts being used. I’m using WooCommerce Memberships, so perhaps that’s the issue, but it’s strange that it’s only just stopped working.
I’ve tried using the recommended Custom code (see below), but still none of the custom post types are displayed:
$args = array(‘post_type’ => ‘resources’);
$args[‘search_filter_id’] = 21588;
$query = new WP_Query($args);I’ve also created a new form to see if that would work, with no success.
Thanks
Anonymous(Private) April 22, 2020 at 12:36 pm #240925Will get the Staging site set up.
Re. your question: the first filter was filtering custom posts so I used the ‘Custom’ option. The second filter I created was for a WooCommerce ‘shop’ page, where I used the ‘WooCommerce Shop’ method. After creating this filter, the one for the custom posts stopped working.
-
AuthorPosts