Exclude categories from list view, updated code?

Home Forums Calendar Products Events Calendar PRO Exclude categories from list view, updated code?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #941275
    Anders
    Participant

    Hi,

    (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.

    #941347
    Geoff
    Member

    Hi 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!
    Geoff

    #941488
    Anders
    Participant

    This reply is private.

    #941617
    Geoff
    Member

    Hey 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!
    Geoff

    #943344
    Geoff
    Member

    Hi 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Exclude categories from list view, updated code?’ is closed to new replies.