BuddyBoss Home – Web › Support Forums › Plugins › BuddyPress User Blog › Option to disable Categories and / or Tags
Tagged: categories, tags
- This topic has 13 replies, 3 contibutors, and was last updated 8 years, 1 month ago by Varun Dubey.
Question
February 7, 2016 at 12:02 pm #58397@schwarzaufweissWow! Thanks for this cool plugin.
Please include checkboxes in the option panel (backend) to disable Categories and / or Tags in the frontend. That would be really helpful while providing a clean and simple workflow for my users.Answers
February 14, 2016 at 11:11 pm #59206@vapvarunHi @schwarzaufweiss
Thanks for your input.
We will keep in our suggestion list to make them as optional.Regards
February 15, 2016 at 7:21 am #59281@kaypitreThis option is crucial in my opinion. Regular members should have access to different categories than the admins. Is there a way we can disable this with code? What files must be modified?
February 15, 2016 at 12:24 pm #59317@vapvarunHi @kaypitre
Please let me know which category you need to skip i will provide custom code for it
RegardsFebruary 15, 2016 at 12:42 pm #59320@kaypitreOh wow! Thank you!
Do you need the actual category names or the IDs. I will provide both.
These are the categories that I don’t want to appear on the front-end to the subscriber. However, as an admin, I want access to them on the back-end.Blog, 10
Featured Member Articles, 95
Fitness, 100
Health & Wellness, 102
Lifestyle, 93
Mind & Soul, 98
Motivational, 96
Recipes, 104
Self Development, 108
Travel & Great Outdoors, 110
Uncategorized, 1
Yoga, 91February 15, 2016 at 1:42 pm #59327@kaypitreoops… not sure if I had to tag you @vapvarun for you to see my post. I’ve provided a response above. 🙂
February 15, 2016 at 2:02 pm #59328@vapvarunHi @kaypitre
Inside plugin folderincludes/sap-functions.php line 318
replace<?php wp_dropdown_categories( 'hide_empty=0&id=sap-cat' ); ?>
with
<?php wp_dropdown_categories( 'hide_empty=0&id=sap-cat&exclude=array(10,95,100)' ); ?>
where 10, 95, 100 are those category id which you do not want to display for member
you can add more ids in same pattern with comma separated values
Let me know if it solve your requirement
Regards
Varun DubeyFebruary 15, 2016 at 2:24 pm #59338@kaypitre@vapvarun
OMG… this is brilliant and so simple. Thank you for the great support. Works like a charm!February 15, 2016 at 2:28 pm #59339@vapvarunGreat 🙂
RegardsFebruary 15, 2016 at 2:32 pm #59340@kaypitre@vapvarun Is there a way to put the remaining categories in the drop-down list in alphabetical order?
February 15, 2016 at 2:38 pm #59341@vapvarunHi @kaypitre
You can use like this
<?php wp_dropdown_categories( 'hide_empty=0&id=sap-cat&orderby=name&exclude=array(10,95,100)' ); ?>
Regards
February 15, 2016 at 2:41 pm #59343@schwarzaufweiss@vapvarun Thanks for that great support you’re providing – but please don’t forget about my inital feature request to completely disable Categories and / or Tags in the frontend.
February 15, 2016 at 2:44 pm #59344@kaypitreThat worked too. Thanks!
February 16, 2016 at 3:19 pm #59434@vapvarunI will close this topic, If you have any further queries feel free to create new topic
Regards
Varun Dubey
- The question ‘Option to disable Categories and / or Tags’ is closed to new replies.