Remove Choose Categories from Community Events Form

Home Forums Calendar Products Community Events Remove Choose Categories from Community Events Form

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #964637
    Chetan
    Participant

    Hi,

    I have only one category and would like to hide the events default categories choice in the submission form. Since I have only one category, I assume it will automatically mark it under that heading.

    #964639
    Chetan
    Participant

    Update: I inserted taxonomy.php in my child theme and this removed the Çhoose Categories option, however, the plugin doesn’t assign a category by default.

    #964686
    George
    Participant

    Hi Chetan,

    I’m glad to hear you’ve already made some progress here with your use of the taxonomy.php file – just to be clear, do you mean a custom theme version of the file within Community Events itself called /views/community/modules/taxonomy.php?

    If so, I’m glad to hear you’re using our template system effectively.

    The full customization you’re requesting here is outside the scope of the support we can provide, but in general you should be able to make some progress by simply removing all logic tied to the $currently_selected_category_ids variable within the Community Events /views/community/modules/taxonomy.php file. In other words, instead of setting it to an empty array like this:

    
    $currently_selected_category_ids = array();
    

    And then passing it through a bunch of checks, just remove all those checks beneath it and simply set it to the ID of the category you want, like this:

    
    $currently_selected_category_ids = array( 123 );
    

    123 is just an example here, of course – use the ID of the category you’d like, which you can find in your WordPress admin area (Google around for resources on finding a category ID if you’re not familiar with it).

    If you need something more robust than this, it would unfortunately require deeper customizations to the form submission handler itself, which is not something I’d recommend doing.

    Take a look at some of the information here and play around with things, I’m sure you’ll be able to patch something useful together for your project.

    Thanks!
    George

    #964724
    Chetan
    Participant

    Hi Goerge,

    As a customer, however, I see setting a default category as a very basic setting for any front end submission plugin especially when there is only one category. In fact, this should not be something to be customized. You should consider making some of these customisations available as options in the plugin itself to your premium customers. I’ll try to do what I can and get back to you. Thanks.

    #965231
    George
    Participant

    Thanks for your feedback Chetan. It’s an interesting dilemma, because if there is only one category, then the category is by definition not necessary.

    In other words, categories are used to separate different types of events, but if there is only one type of event (as indicated by there being only one category), then no differentiation is needed and thus the category itself is not needed. It would serve no actual purpose other than aesthetic ones.

    So because of this, I don’t personally think that these features are something that would or should be built into the plugin. That does not mean that we want to hinder your use of our plugin, however, and though we can only provide limited support for customizations I’m happy to field as many questions about this as I can, and help you along if possible.

    I hope some of the information I’ve already shared in my above reply helps – let us know if you have any further specific questions or concerns about this.

    Thank you,
    George

    #984208
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Remove Choose Categories from Community Events Form’ is closed to new replies.