Home › Forums › Calendar Products › Events Calendar PRO › All Events Category List
- This topic has 32 replies, 4 voices, and was last updated 14 years, 4 months ago by
Jonah.
-
AuthorPosts
-
November 9, 2011 at 9:38 am #10796
Scott
ParticipantThere 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:
November 9, 2011 at 10:13 am #10803Rob
MemberHey 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.
November 9, 2011 at 2:37 pm #10842Jonah
ParticipantHi 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,
JonahNovember 9, 2011 at 2:41 pm #10843Jonah
ParticipantOoops code got botched – here’s a Pastebin version:
November 10, 2011 at 8:39 am #10888Scott
ParticipantJonah,
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.
November 10, 2011 at 9:00 am #10889Rob
MemberHey 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.
November 10, 2011 at 12:58 pm #10922Jonah
ParticipantHi Scott, I just posted a tutorial on this: https://theeventscalendar.com/how-to-show-featured-thumbnails-in-the-next-events-widget/
Enjoy!
– Jonah
November 10, 2011 at 6:26 pm #10949Sandy
MemberFor 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.
November 10, 2011 at 6:35 pm #10950Sandy
MemberIn 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/November 11, 2011 at 7:56 am #10966Jonah
ParticipantHi 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,
JonahNovember 11, 2011 at 4:08 pm #10992Rob
MemberThanks Jonah.
November 14, 2011 at 5:21 pm #11089Sandy
MemberDumb-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)
November 15, 2011 at 3:58 pm #11138Rob
MemberHey 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.
November 16, 2011 at 11:24 am #11184Scott
ParticipantAll 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!
November 16, 2011 at 11:26 am #11185Scott
ParticipantSorry, shoulda put the code to pastebin for #1, so here it is:
-
AuthorPosts
- The topic ‘All Events Category List’ is closed to new replies.
