Forums › Forums › Search & Filter Pro › Plugin is not finding Woo categories
- This topic has 16 replies, 2 voices, and was last updated 9 years, 1 month ago by Ross.
-
Anonymous(Private) September 23, 2015 at 11:56 pm #25662
Hi Ross,
Plugin looks great. Have been unable to get it to work with Woocommerce.
It picks up blog categories but not product categories.
I have tested it on an Avada setup and on a non-avada setup (Vantage).In the case of the Avada theme, we are getting an error message:
Warning: Illegal offset type in isset or empty in /home/user/public_html/avada/wp-includes/post.php on line 1168I have tried placing it with shortcodes and also using the woocommerce shop page.
Any ideas?
Ross Moderator(Private) September 24, 2015 at 1:09 am #25669Hey there
Woocommerce tags and categories are actually taxonomies.
Have you tried a taxonomy field?
Thanks
Anonymous(Private) September 24, 2015 at 8:52 pm #25786Ah, yes. That helps. Thanks.
In your instructions you say to be sure to add Search and Filter widget to the Shop page. You mean to a sidebar in the Shop page?
Also, what about the php error? If I use the shortcodes method on a different page, I don’t see that error on either the shortcodes page, or the Shop.
Ross Moderator(Private) September 24, 2015 at 10:00 pm #25797Hi Jonathan
Yeah you can add it as a widget to the sidebar or place it anywhere else you like using the shortcode – so long as it can be found on your actual shop page somewhere.
RE the PHP error, I’m not sure about that.
What display mode did you use? (under “display results” tab)
Thanks
Ross Moderator(Private) September 25, 2015 at 10:41 am #25853I think you can just add it as a widget to the sidebar 🙂
RE The error, can you provide a link so I can investigate it further?
Thanks
Ross Moderator(Private) September 28, 2015 at 11:08 am #26013This reply has been marked as private.Ross Moderator(Private) September 30, 2015 at 12:59 pm #26221Found the issue 🙂
It technically an issue in Avada I would say but I’ve updated S&F to workaround it.
Basically, in the Avada breadcrumb function in
class-fusion-breadcrumbs.php
(line 466) they access the post type variable from the current query:$post_type = $wp_query->query_vars['post_type'];
The issue is they are treating it as a string, when in fact it can be an array (completely valid with WP) – this means that the following line throws an error, because it is expecting a string, but S&F uses arrays.
Anyway, I modified this so it should now stop throwing this error – emailing you the update now.
Thanks
-
AuthorPosts