Home › Forums › Calendar Products › Events Calendar PRO › Exclude categories from list view, updated code?
- This topic has 4 replies, 2 voices, and was last updated 11 years, 2 months ago by
Geoff.
-
AuthorPosts
-
February 10, 2015 at 6:40 am #941275
Anders
ParticipantHi,
(Before I ask the ‘real’ question, let me ask if maybe there is a better way to achieve what I am looking for: is there an option to have the list view, but instead of having the events grouped by month, have them grouped by week? That would potentially solve my issues below in a more elegant way. However, after looking around in the settings option, I fear that might not be the case, so here is my ‘real’ question:)
Is there an updated and working example of how to exclude certain categories (or tags) from the list view, but still have them visible in a widget?
I have found a couple of posts on the forum, but none of the code snippets given seem to work. The posts seem to be a bit old, and I am just wondering if something changed in the last updates?
I should also say that I am running a Genesis child theme.
February 10, 2015 at 9:14 am #941347Geoff
MemberHi there Anders! Welcome to the forums–we’re stoked to have you aboard. ๐
Excellent first question. You’re right and there is no way to group events by week in List View. We do have the Week View specifically for grouping events by week, but not a weekly view specifically tailored for List View. That’s an interesting idea, though, and we’re always taking new feature suggests over on our UserVoice page, if that’s something you’d like to be considered.
You can certainly exclude certain categories from List View, For example,ย the snippet below will do just that. I have to admit I’m not a Genesis expert, but the snippet does work on my standard WordPress install. Go ahead and give it a shot. ๐
https://gist.github.com/geoffgraham/c0687827569b188ec793
Cheers!
GeoffFebruary 10, 2015 at 4:26 pm #941488Anders
ParticipantThis reply is private.
February 11, 2015 at 8:07 am #941617Geoff
MemberHey there, Anders! Thanks for following up.
FYI, it looks like the links you shared in your last reply are broken or the site is down.
My hunch is that the snippet isn’t properly implemented in your theme’sย functions.php file. Typically, you can simply paste the snippet at the very end of the file, but another safe bet is to paste it at the very top just after the opening PHP tag.
You may also want to try activating the default WordPress Twenty Fourteen theme and trying the snippet there to see if there’s a conflict with your current theme.
Cheers!
GeoffFebruary 18, 2015 at 9:02 am #943344Geoff
MemberHi there, Anders! I see that my first answer here was marked as correct. I’m not sure if you or someone else marked it, but I’ll assume it was you and go ahead and close this thread. If you still have some questions, please feel free to start a new thread and we’d be happy to help you out there. ๐
Cheers!
Geoff -
AuthorPosts
- The topic ‘Exclude categories from list view, updated code?’ is closed to new replies.
