Forum Replies Created
-
AuthorPosts
-
December 27, 2012 at 11:47 pm in reply to: Mini Calendar: Click month, display events from that month #30056
Will
ParticipantOops, I just realized I could have made my link more elegant in tribe-mini.php. Here’s a new snippi: http://snippi.com/s/v7r5ose
December 27, 2012 at 11:21 pm in reply to: Mini Calendar: Click month, display events from that month #30055Will
ParticipantWell, I took the easy way out and replaced the function calling the grid in gridview.php with the loop in list.php.
The downside to this is that now if I make a change in one, I need to make a change in the other. Kind of aggravating. I’d love to know if there’s a way to reroute the page back to list.php if the year and month are in the uri.
December 27, 2012 at 11:04 pm in reply to: Mini Calendar: Click month, display events from that month #30054Will
ParticipantOK, added the link around the date: http://snippi.com/s/nmua7u4 –note that you’ll need to update your styles a bit as well to make this look right.
Beyond this, all I can think to do now is to completely blowout the gridview.php file and rewrite it with my own query, mimicking the customizations I’ve done to the list.php file. OR, write a jquery function that hides all the months except the current one, except that I’d also then need to tie into the next and previous ajax functions and reset that function. Argh…
Will
ParticipantI’m all sorted here.
Will
ParticipantOK fixed it. Forgot the query_vars…
http://pastebin.com/N2zbKRcMWill
ParticipantEDIT: crap, for some reason this isn’t actually working, as the mini calendar isn’t actually showing any events that should be displayed on the days of this month that has events, until I click back a month, then click forward a month. So for now, ignore that pastebin until I comment back.
Will
ParticipantActually: don’t worry about it. For anyone who is using Advanced Custom Fields with the “Options” page, this is now set up to grab a custom date field from the options page called “Mini Calendar Default Month Display” and use that date as the default mini calendar start date. If no option exists, or if the current date is gte current date, it shows the current month instead.
http://pastebin.com/0YKGPzbEWill
ParticipantActually, Jason, question for you: did pasting your code in drop some punctuation? I’m looking at it and I’m not quite understanding how the code can work with an open paranthesis and no closing one. Mind pasting in the complete set of code for this?
Will
ParticipantJason and Barry–thank you so much for this, perfect.
December 22, 2012 at 5:02 am in reply to: Unable to get Organizer Post ID (to filter using a meta_query) #29933Will
ParticipantHey Barry,
Hope you don’t mind, but I updated your pastebin function to a function (and a filter) that allow for the organizer ID to be returned based on the organizer’s string name.Usage: if you have an organizer named “Will Lanni”:
$org_id = get_organizer_id_by_title(“Will Lanni”);December 17, 2012 at 3:51 pm in reply to: Venue State Dropdown is not auto populated based on Default Value #29656Will
ParticipantNo worries, not a deal-breaker for me. I noticed that where the default values actually do work is when adding a new event. I don’t remember anything in the settings explicitly saying “This will only work when creating a new event”, but it may be there and I just missed it. 🙂
December 14, 2012 at 3:15 pm in reply to: Organizer Archive Page (similar to Venue Archive Page) #29545Will
ParticipantYep, somewhere near the register_post_type function I’m sure is an ability to “update_post_type” or something to that effect. I’ll give it a read/search.
December 14, 2012 at 2:52 pm in reply to: Organizer Archive Page (similar to Venue Archive Page) #29538Will
ParticipantAt some point elsewhere on the web I found a function someone posted to filter or adjust the Organizer Post Type. I’ll search for that again—I’d prefer to alter the plugin code as little as possible—but it would definitely help to enable the archives for Organizer, as that is a direct request from my client and a major piece of the functionality of this site. Worst case scenario is I just build my own wp_query on a page, that will work just fine too.
December 14, 2012 at 2:50 pm in reply to: Unable to get Organizer Post ID (to filter using a meta_query) #29537Will
Participantooooh that looks pretty good. I’m going to take tonight off as two weeks straight of 16 hour days is wearing me down, but I’ll check back on Sat to let you know how it goes. Thanks so much for your help!!
Will
ParticipantOoooh this may help me a bit. Let me try to understand this… Venues have single pages that list out their upcoming events. Is this basically a similar bit of functionality to mimic that?
-
AuthorPosts
