Home › Forums › Calendar Products › Events Calendar PRO › Remove Category from Photo / Month / List View
- This topic has 11 replies, 3 voices, and was last updated 10 years, 1 month ago by
Support Droid.
-
AuthorPosts
-
February 11, 2016 at 1:04 pm #1071709
Kerry Sykes
ParticipantI have a category which I want to remove from my events lists, but show as photo/month/list it’s own category, this is for community weekly events.
Is this something that is being considered as an update, so you can choose to “remove” certain categories from the main list, so this does not have to be done in code!
This is kind of having 2 calendars, one for Main Events and one for Community Events
February 11, 2016 at 10:44 pm #1071850Josh
ParticipantHey,
Thanks for reaching out to us!
Could you provide a little more detail about what you’re trying to accomplish? Unfortunately I don’t believe I’m fully understanding what you’re wanting to accomplish with these particular views.
Thanks!
February 12, 2016 at 5:37 am #1071908Kerry Sykes
ParticipantThis reply is private.
February 15, 2016 at 8:14 am #1073287Josh
ParticipantHey,
Thanks for following up and providing this additional information!
Take a look at this thread and try the associated completed snippet and see if it works for what you’re trying to accomplish https://theeventscalendar.com/support/forums/topic/hide-category-from-main-calendar-but-not-category-calendar/.
Thanks!
February 18, 2016 at 5:09 am #1074850Kerry Sykes
ParticipantThis reply is private.
February 18, 2016 at 5:10 am #1074853Kerry Sykes
ParticipantThanks ever so much, can you let me have the definitive code I would need and the exact location this needs to be placed.
I am trying to take out this category from the photo / month view please
This is the slug – community_calendar
I am not a web developer, so would need to pass this info onto one to add the code to.
Many thanks
February 19, 2016 at 10:35 am #1078356Josh
ParticipantHey,
Thanks for following up.
The full snippet that you would use would be found here https://theeventscalendar.com/support/forums/topic/hide-category-from-main-calendar-but-not-category-calendar/#dl_post-1012460.
You would add that to your theme’s functions.php file and you would just need to change the terms in the array on line 19 to match the category terms that you would like hidden from the calendar.
If you’re passing this onto a developer to add, this should be more than enough information for them to accomplish what you’re looking for here.
Thanks!
February 22, 2016 at 5:17 am #1079662Kerry Sykes
ParticipantThis reply is private.
February 23, 2016 at 8:13 am #1080709Josh
ParticipantHey Kerry,
Are you wanting a snippet that now just removes the category from the Photo view but still has it in the other views (Month, List, etc.)?
Also, what is the exact category slug that you’re wanting to have hidden?
Thanks!
February 23, 2016 at 8:56 am #1080823Kerry Sykes
ParticipantYes that’s right, if we can remove the category ‘community_calendar’ from the photo view, I can then create the list view for each category within that.
If you could let me have the snippet for that, we would really appreciate it.
Many thanks
February 24, 2016 at 9:36 am #1081549Josh
ParticipantHey Kerry,
You can use the following snippet (added to your theme’s functions.php file) to had that category from the Photo view:
https://gist.github.com/BeardedGinger/2f88f06651ab018617fe
Let me know if this helps.
Thanks1
March 10, 2016 at 8:35 am #1087212Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Remove Category from Photo / Month / List View’ is closed to new replies.
