Support

Home Forums Event Espresso Premium Modifying espresso-calendar.php to remove categories in dropdwon

Modifying espresso-calendar.php to remove categories in dropdwon

Posted: March 11, 2015 at 4:25 pm

Viewing 4 reply threads


Michal

March 11, 2015 at 4:25 pm

I am trying to not display certain categories (I have category called hidden in my events) on the drop down for the calendar and found where the code gets the categories. Would you recommend modifying the sql to not pull out a specific string so changing the c_sql = “SELECT * FROM ” . EVENTS_CATEGORY_TABLE or modifying the actual result of the sql or adding an if to the loop that goes through $temp_cats and checking the $cat->category_name. Anything we should worry about here?

Thank you


Michal

March 11, 2015 at 4:57 pm

Just to elaborate – I just want to remove the category from the dropdown but still have the events displayed on the calendar so I modified the sql to remove the desired category just from the dropdown list. We have an issue with displaying recurring events outside of the calendar and trying to avoid all the events listing out without impacting the Multiple Event Registration add-on. We set up different categories for the events and can filter on those in the EVENT_LIST by selecting desired categories but we can’t do it on the calendar without specifically modifying the SQL.


Dean

March 12, 2015 at 3:09 am

Hi,

Any of those will be fine, the main thing is that the $temp_cats variable is the one affected, either on creation or after the SQL has run it doesn’t really matter.


Michal

March 12, 2015 at 7:37 am

Great thanks – posted a question about linking categories as a work-around before figuring this out so disregard the question… Thanks! Your tech support is really amazing.


Dean

March 12, 2015 at 7:44 am

No problem, I’ll close this forum thread off, so if you do need to discuss it again, please just start a new thread and link to this one. Thanks!

Viewing 4 reply threads

The support post ‘Modifying espresso-calendar.php to remove categories in dropdwon’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso