Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: category filter, category widget, regions
- This topic has 3 replies, 3 voices, and was last updated 9 years, 4 months ago by
Steven Zahm.
-
AuthorPosts
-
03/30/2013 at 6:45 pm #255589
dgalassi
ParticipantHi! I would like to use the Category side bar widget to filter the categories of a single category. I have a site using multiple directories – and have defined a regions category for different regions. What I’d like, is to use the side bar widget so that someone can see those categories that exist for that region – without mixing the multiple regions in the side bar results. Is there a way I can do this – and if not, can you point me in the direction as to where to make that change to filter the categories if I create my own custom widget to do this?
Donna
03/31/2013 at 7:11 pm #255618Steven Zahm
Keymaster@ dgalassi
This isn’t a built-in feature of the category widget yet, but it shouldn’t be too difficult to modify it.
You’ll need to open the class.widgets.php from the Widget Pack plugin. You want to edit the function that starts on line 162. The $atts array will be key on line 178, you’ll need to add a key named “parent_id”. This will be an array of the category ID/s of root parent categories that you want to limit the list to. So if you add a text input for the root parent category ID/son the widget settings, you will be able to set them per widget instance.
I hope that points you in the right direction.
05/29/2014 at 3:35 pm #292478Mike
ParticipantI understand this post, but I am curious, I want to use the widget multiple times on a single page. I have 4 parent categories, each with dozens of child categories, so I want to have one widget per parent category. Can this be done?
05/29/2014 at 7:23 pm #292506Steven Zahm
Keymaster@ Mike
The widget would have to altered to include a parent field so it can be multiple times, each with a different parent id. This will be part of the updates I mentioned in this reply.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.