Help Desk

Exclude Certain Categories On Community Add Page

  • Posts: 2 Topics: 1
    | Permalink

    Hello I’d like to exclude certain categories on http://autismallianceofmichigan.org/events/community/add

    Is this possible, thanks!

    Posts: 3519 Answers: 115
    | Permalink

    benjduff,
    Thanks for getting in touch! You should be able to hide certain categories by pasting the following snippet into your theme’s functions.php file:

    A couple of notes:

    • You’ll need to modify the array of excluded Category IDs to exclude your desired items
    • This will also hide Category checkboxes on the Community ‘Edit Event’ screen

    Give that a try and let me know if that does the trick. Thanks! πŸ™‚

    -Casey-

    Posts: 2 Topics: 1
    | Permalink

    Sorry, not working. Also on my dashboard the event calendar controls don’t show up.

    thank you

    Posts: 3519 Answers: 115
    | Permalink

    Sorry, not working.

    Can you elaborate a bit? Did you paste the code into your theme’s functions.php file and modify the IDs to the Event Category IDs that you’d like to exclude?

    Also on my dashboard the event calendar controls don’t show up.

    Are you referring to the WordPress Dashboard? If so, then I’m not sure what you’re referring to, since our plugin doesn’t add any widgets to the WordPress dashboard. Could you explain this a bit more also, or include a screenshot, so I can investigate further? Thanks! πŸ™‚

    -Casey-

    Posts: 2 Topics: 1
    | Permalink

    Hey Casey, read through some older posts and fixed it. Thanks again!

    Posts: 3519 Answers: 115
    | Permalink

    Great! Thanks for confirming that this got you sorted. Since it looks like you’re all set, I’m going to mark this thread “Answered” and close it out.

    By the way, if you have a minute or two, we would love it if you’d write a few words for us here: http://m.tri.be/jw

    Thanks in advance. πŸ™‚

    Cheers,
    Casey