Forum Replies Created
-
AuthorPosts
-
July 16, 2013 at 7:50 am in reply to: 3.0 + – Template code not working for custom category page #55416BrianParticipant
Hi Jonah,
Thanks. Here’s the code in my custom template that was working before upgrading to 3.0+ – http://snippi.com/s/2i7p2x9
It’s basically showing the grid view calendar of events from one category. In 3.0+ I get the error “Fatal error: Cannot redeclare display_day_title() (previously declared etc…..”
BrianParticipantThat’s awesome Jonah, thanks! Can’t wait for 3.0
BrianParticipantHi Jonah,
I have about 30 “Program” pages , and each program has it’s own calendar of events (a specific category) . So, on each program page, I’m using all of the code from the gridview etc scripts to display a gridview calendar , with a customized query to show only events from each specific category.
I wouldn’t want to change that function across the entire site though, just for these custom template pages.
Works perfectly, until you click to any month forward or back. The ajax loads the next month for example when you click “July”, but it loses the query and shows ALL events .
I had previously asked you if I could stop the pjax from changing the URL but then realized that even doing that wouldn’t stop the query from losing the category.
The ECP category grid view pages work perfectly (moving through the months, it still knows to only show the category you’re viewing), and that’s pretty much the functionality I need to replicate in a custom template .
I can’t figure out any other way to accomplish this. Ideally, I could do this tribe_get_next_month_link(‘tribe_events_cat=5’) if parameters were accepted in that tag, but I understand they are not.
My final solution I may have to end up using is an iframe of each category page and see if that will work.
Thanks for any recommendation you could provide or ideas Jonah
BrianParticipantCool , thanks Jonah. Last question, it’s sort of on the topic of this thread.
I’ve got the grid view and table showing perfectly in my custom template and pulling in one category that I’ve designated in my query…but when using the next month and month dropdown menu, it changes the URL address to domainname.com/events/2013-06/ or whatever month I’m viewing. It’s great that it ajax loads this in so the user stays on my custom page, but would love it if I could stop it from changing the URL …any idea how to accomplish that?
BrianParticipantSorry, here’s that code – http://pastebin.com/jha0HPGC
BrianParticipantI’m trying to get a grid view calendar showing in a custom page template to only show events from one category.
Rather than having to grab all of the various pieces of code from the gridview file, would a template tag work?
Is the plugin not set up to have parameters within the template tags….something like this:
Anything we can use like that? not working for me currently
BrianParticipantGreat, just realized the update also removed my template designation also. How can you release an update to a premium plugin that just ignores previous settings pre update ?
BrianParticipantRob, this bug seems to only be related to one specific version of WordPress (think it was 3.1 something) …
It’s working perfectly for me now that I upgraded some of my sites to 3.2.1 !
Thanks, delighted
November 3, 2011 at 8:04 am in reply to: events out of date order when used in newest version of wp #10526BrianParticipantI just noticed that the sites that weren’t showing upcoming events in correct order were all just one WordPress version old….. so I updated them to 3.2.1 and they are now showing in correct order! Delighted.
Seems like this is just a bug related to a specific WordPress version (which I think was 3.1. something)
Thanks!
November 2, 2011 at 7:57 am in reply to: events out of date order when used in newest version of wp #10485BrianParticipantYeah, still having issues with upcoming events order on all sites using the new ECP. One example can be seen here: http://visitfortmyersbeach.co/ Upcoming dates all out of order…. The query I’m using is the same as what I linked to in my previous pastebin link.
November 1, 2011 at 10:46 am in reply to: events out of date order when used in newest version of wp #10411BrianParticipantOn two of my sites that I’ve upgraded to ECP the upcoming event are not in order of event date either now…… This is the query I’m using:
BrianParticipantHi Rob, not sure if it’s been mentioned somewhere in the forum yet, but may be a bug….
When displaying upcoming events via template code, it shows the upcoming events correctly…..until you create a recurring event…..then it messes up the display order the upcoming events.
Screen shot here: http://yfrog.com/h7zzdmp
Can John chime in and see if he can confirm the bug please? Hopefully get it fixed in the next version update
October 31, 2011 at 7:00 pm in reply to: events out of date order when used in newest version of wp #10380BrianParticipantSarah, get rid of ‘orderby’ => ‘_EventDate’ , and ‘order’ => ‘ASC’ and use
‘eventDisplay’=> ‘upcoming’
BrianParticipantHi Tineke, your “Upcoming Posts” code is incorrect – you have the orderby=date which will show events by the date you created the posts….I think most people would want to show upcoming events with the event happening the soonest to be the first in the list….and so on…
So, for anyone hoping to find that in this thread, instead of orderby=date in the query , do eventDisplay=upcoming
BrianParticipantNo luck, tried everything I could think of…. I don’t expect we’ll receive support on this issue either as the “community events” add-on is coming out sometime…and it’s basically going to do the same thing we are trying to do with gforms
-
AuthorPosts