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: 0.7.6.4, category, show_empty_categories, widget
- This topic has 6 replies, 4 voices, and was last updated 9 years, 8 months ago by
Grady Sibert.
-
AuthorPosts
-
04/19/2013 at 7:47 am #257474
Emily
GuestI could use “show_empty_categories” shortcode in the drop down to control categories that are empty. How about the widget?
Thanks
04/19/2013 at 10:34 am #257485Steven Zahm
Keymaster@ Emily
Not certain I understand completely, but I’ll try to answer.
The show_empty_categories is a template specific shortcode option and it is only available to those that support that option. Using it for a template will not affect the widget.
I hope that answers your question.
04/22/2013 at 11:15 am #257615Emily
GuestThank you for your reply.
So there is no way to hide the empty categories from Category Widget (A hierarchical list of the categories. The links will take you to that category on the directory home page.)?
-Emily
04/22/2013 at 12:58 pm #257621Steven Zahm
Keymaster@ Emily
Well, there is a way, but you would have to make a minor change to the widget’s PHP file. If you’r able to do this, I can provide you with the required change.
04/25/2013 at 9:15 pm #257936dgalassi
ParticipantSteven,
I ran across this while looking around before posting my question. I am also trying to remove the empty (and unlisted) listings from the side bar widget. I see above that this is possible with a minor change to the widget’s PHP file. If you could let me know what I needed to change, I’ll make that update.
Here’s an example of what I mean
http://experiencepros.com/directory/colorado/
“Non profits” category is showing as zero, and I don’t want the zero categories showing in the list. And I’ve found cases where the unlisted items are showing up in the list (though I believe that listing has since moved to public so there’s not an example of that on the site currently). Is there a way to remove the unlisted listings from the side bar category list also?
Thank you in advance for your help.
Donna
04/28/2013 at 9:30 am #258110Steven Zahm
Keymaster@ dgalassi
If you open the class.widgets.php file in this path:
../wp-content/plugins/connections-widgets/includesGo to line 180.
It should be this:
'show_count' => TRUE,
Just change TRUE to FALSE.
The categories count is the number of categories assigned to the category regardless of the viewing permission. For example, say you have a category and have three entries assigned to it. One public, one private and the last unlisted. The category count would still show up as (3) with the public one being visible to everyone regardless if a user is logged into your site or not. The public and private would be visible only to those that are logged into the site. The unlisted would be shown to those how have access to the Connections : Manage admin page and have permissions to view unlisted entries.
I hope that helps.
12/30/2013 at 7:06 pm #276185Grady Sibert
ParticipantAhoy,
If anyone is reading this thread it looks like the code changed a bit. So:
It’s actually line 190 that you would want to change to this:
'show_empty' => FALSE,
To hide the empty categories in the sidebar widget.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.