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.
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.
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: 8.1.5, categoryInputOption()
- This topic has 1 reply, 2 voices, and was last updated 8 years, 5 months ago by Steven Zahm.
12/16/2014 at 9:58 am #312889JamesGuest
I have been attempting to get the template slim-plus to display the categories in a checkbox type list. I came across a checkbox and radio type option in the class.template-parts.php file under the categoryInput function so I tried changing the ‘type’ to “checkbox” in the categorySelect function in slim-plus.php, this made the categories display in a checkbox list but when selecting multiple checkboxes and hitting search only the lowest checkbox stays checked and is searched.
I’m just wondering if there is a way to get this to search for multiple categories at a time and if the checkboxes and radio outputs are a new feature that hasn’t been released or perfected yet, as i could not find any other info on them?
Sorry if the question didn’t make total sense, i’m still repetitively new to wordpress and PHP and would appreciate any help at all.
James12/16/2014 at 11:42 am #312902Steven ZahmKeymaster
I added these with only the most basic debugging; ie didn’t fatally crash PHP. Anyway, I think, to fix the issue with checkboxes you’ll name to change the
nameattribute here. Changing it from
name="cn-cat"will fix it. That would result in a search where any entries assigned to any of the selected categories to be returned as a result. Changing the name to `name=”cn-cat-in” would result with with a search where an entry must be assigned to all the selected categories.
Hope that helps, let me know.
fyi, these functions will likely be going away at some point in favor of ones that use the core WP Walker class. The next update to the Widget Pack uses the replacement for the category list function (just added yesterday).
You cannot reply to this support topic. Please open your own support topic.