Home › Forums › Calendar Products › Community Events › Set category only for admin
- This topic has 5 replies, 2 voices, and was last updated 9 years, 8 months ago by Casey.
-
AuthorPosts
-
July 15, 2014 at 8:58 pm #403065massoundParticipant
Hi,
I would like to set some categories only for admin. I don’ want it to show up on the frontend event submission form. Is it possible and how?
Thanks!
July 17, 2014 at 8:44 am #429805CaseyParticipantmassound,
Thanks for getting in touch! You should be able to do this by adding the following code to your functions.php file: https://gist.github.com/ckpicker/472fbe0c96e209d2bf0dJust make sure to change the $categories_to_hide variable to include the slugs of your categories. Give that a shot and let me know if it does the trick. Thanks! ๐
-Casey-
July 17, 2014 at 7:43 pm #436490massoundParticipantHi Casey,
Thanks for your prompt reply and kind assistance. The code you provide works great for me. Is it possible to make it as an option in your upcoming update to let admin set it on the backend? If not, will I need to paste the code again when I update the plugin?
Thanks again for your great help.
Best,
Massound
July 18, 2014 at 9:21 am #445892CaseyParticipantMassound,
If this is something you’d like to see in a future release, I would suggest submitting it as an idea on our UserVoice page. Our team periodically reviews the most popular ideas for possible inclusion in a future release of the plugin.Since this code is in your theme’s functions.php file, you should only have to reapply it if you update your theme and your functions.php file gets overwritten.
Hopefully that helps to clear up any confusion, but let me know if you have further questions. Thanks! ๐
-Casey-
August 14, 2014 at 9:00 am #666793CaseyParticipantI just wanted to follow up and see if youโre all set here or if you still have further questions. Just let me know if you have further questions or if I should go ahead and close out this thread. Thanks! ๐
-Casey-
August 28, 2014 at 6:44 am #706375CaseyParticipantSince I havenโt heard back from you here, Iโm going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! ๐
-Casey-
-
AuthorPosts
- The topic ‘Set category only for admin’ is closed to new replies.