All Events Category List

Home Forums Calendar Products Events Calendar PRO All Events Category List

Viewing 15 posts - 1 through 15 (of 33 total)
  • Author
    Posts
  • #10796
    Scott
    Participant

    There are two things that I want to do, but haven’t found the documentation for it, if someone could help?

    1) I would like to be able to list all categories above the calendar view, so that if someone wanted to just see the calendar within a specific event category, they would be able to. Example: Let/s say I have two categories, “East Coast” and “West Coast”. When I am looking at the Event Calendar, I want to be able to have those categories listed, so that when someone clicks “West Coast”, they get to see a calendar with just the items pertaining to “West Coast”. I have tried using “tribe_meta_event_cats(”);”, but this will only display the current category for a single event: please check out http://dev.mesacountylibraries.org/events/ for an example of how it’s not working.

    2) I feel I should know this, but I can’t figure it out: I would like it so that the “Next Event” widget will also show the thumbnail for that event.

    Thanks in advance for any help you can give me! I have also listed this problem on the WordPress forums at:

    http://wordpress.org/support/topic/plugin-the-events-calendar-list-all-categories-get-next-event-thumbnail?replies=5#post-2431385

    #10803
    Rob
    Member

    Hey Scott. Thanks for the note on this; what you’re requesting in #1 sounds like it could be somewhat complex but I’d rather have a developer take a stab at that than I. As such I’ve passed it on to our dev Jonah for review.

    The next event widget does not show the thumbnail by default – I’ll also get Jonah to chime in as to whether that’s doable. Expect a response sometime today.

    #10842
    Jonah
    Participant

    Hi Scott,

    I’m not sure why tribe_meta_event_cats doesn’t show all the cats… I’ll have to look into it and put it on the list of things to potentially fix or improve going forward.

    For now though I’ve got a pretty good solution – since The Event Calendar uses taxonomies for categories you simply need to query for that particular taxonomy and spit out the records. This should do it:

    0 ){
    echo “”;
    foreach ( $terms as $term ) {
    echo “slug . “‘>” . $term->name . ““;

    }
    echo “”;
    }

    ?>

    As for showing thumbnails in the Next Event widget, there’s no super easy way to do this and I’m going to add this to the list for future features but basically what you’d want to do is unregister the TribeEventsFeatureWidget class and then add your own customized instance of it (so your changes won’t be overwritten when updating).

    I can provide an example if you’d like just let me know.

    Regards,
    Jonah

    #10843
    Jonah
    Participant

    Ooops code got botched – here’s a Pastebin version:

    http://pastebin.com/zz9hfTUQ

    #10888
    Scott
    Participant

    Jonah,

    Thanks for your quick response. The listing of all cats was perfect! Thanks for providing that, it was a great help.

    As for the thumbnails item, it would be great if you could provide an example, if you have the time and patience.

    Also, if it is ok with you, I would like to put this solution for the listing of categories on the wordpress.org support post I created. I just want to make sure I am not stepping on your toes by doing so.

    #10889
    Rob
    Member

    Hey Scott. I can get Jonah to respond to your first point (re: thumbnails) today. As for sharing this on the WP.org support post…that’d be awesome. Anything that helps make things easier for the OS community is OK by us. Thanks for asking though.

    #10922
    Jonah
    Participant

    Hi Scott, I just posted a tutorial on this: https://theeventscalendar.com/how-to-show-featured-thumbnails-in-the-next-events-widget/

    Enjoy!

    – Jonah

    #10949
    Sandy
    Member

    For those of us still learning the coding side of WP, where exactly would one put that cat list code? I’ve been racking my brain for days trying to do exactly what Scott has on his page… a drop down list of event categories above the calendar view… much appreciated.

    #10950
    Sandy
    Member

    In a perfect world, the type of search functionality that I see on this events page, would be what I’d like on mine… is it doable?
    http://www.bethesda.com/events/

    #10966
    Jonah
    Participant

    Hi Sandy,

    I just put the cat list code at the top of my gridview.php template file but you could put it elsewhere too. Make sure you first setup a template override for gridview.php if you haven’t already by creating an ‘events’ folder in your theme directory and copying gridview.php in there. This will allow you to retain your changes to it when you update.

    Anythings possible but getting a search like that setup is fairly complex. I’ll put it on the list of potential tutorials we’re planning.

    Let me know if you have any other question.

    Thanks,
    Jonah

    #10992
    Rob
    Member

    Thanks Jonah.

    #11089
    Sandy
    Member

    Dumb-ass question of the day: Where do I find the gridview.php template? I’ve checked all the folders in the plug in and in the theme and can’t find it. Is it possible my theme doesnt have one? (PlatformPro)

    #11138
    Rob
    Member

    Hey Sandy. This is actually in the free (not PRO) files. Go to the free plugin then navigate into the Views folder and you should see it. Let me know if not.

    #11184
    Scott
    Participant

    All of this is greatly helpful, thanks again to you guys for your hard work. I am loving what different things I can do with this! But, of course, I still have a few more questions:

    1) So, in getting the category dropdown to work, I thought it would also be great if there was a way to have a dropdown for Venues? I tried using

    0 ){
    echo “Choose a Location”;
    foreach ( $terms as $term ) {
    echo “slug . “/’>” . $term->name . “”;
    }
    }
    ?>

    but it doesn’t work (I believe because there isn’t a way to view events by venue). Is this something I can do?

    2) The tutorial for the image thumbnail on the widget is great! What I want to do with it, however, is a little more complicated, although not greatly. I would like to have it so that the thumbnail only shows up for the first event, and not for the others. Is there a way to make it occur only for the first event?

    Again, thanks for your time!

    #11185
    Scott
    Participant

    Sorry, shoulda put the code to pastebin for #1, so here it is:

    http://pastebin.com/xmsgYtrC

Viewing 15 posts - 1 through 15 (of 33 total)
  • The topic ‘All Events Category List’ is closed to new replies.