Forum Replies Created
-
AuthorPosts
-
August 14, 2012 at 9:32 am in reply to: Next month link breaks template, but refresh and it's fine #23633
baynature
ParticipantYou’re fast! I was just thinking I ought to explain that… We’re using a minimally customized ecp-page-template.php to selectively hide our default sidebar on this view, but then the view itself is made with this customized version of gridview.php, stored in /events in our theme folder:
http://pastebin.com/avEm9iCcJuly 24, 2012 at 11:47 pm in reply to: Getting Community Events to use ecp-page-template.php instead of single.php #22705baynature
ParticipantThat did it! Sorry about the dual post. Did try to search forums first, but been working round the clock and probably couldn’t string together any sensible search terms…
baynature
ParticipantOops, code snippet got chopped. Oh well. Suffice it to say we have it mostly working for now.
baynature
ParticipantFYI,I came up with a hack that works for the title on the page for now anyway. Not too pretty, but the best I can do while my real coders work on bigger issues. Looks like this (note sure how to show code snippets here):
=2) ) {
echo date(‘F j, Y’, strtotime($maybeDate));
}
?>baynature
ParticipantHi Jonah,
Thanks. We’re still having trouble with this. The only date var I see referenced in the code snippet you sent is “eventDate”. Isn’t that going to feed from the start date of the first event on the page (which is a multi-day event starting in the past)? So won’t that duplicate the problem we’re already having?
We tried this:
query_vars[‘eventDate’])); ?>
but that displays Jan 1, 1970 (as shown here: http://staging.baynature.org/events/2012-07-31/).
In any case, what we’re trying to do is display the selected day as shown in the URL but the page title and WP date stamp are different. Then the only function that I see with the calendar is the start date. So if it’s a multi-day event then you view Saturday’s page but it displays Friday’s date because that’s when the event started.Maybe the solution is to grab the last element of the URL and pull that date in and format it in the page title and HTML?
-
AuthorPosts
