Forum Replies Created
-
AuthorPosts
-
KellyParticipant
Also wondering if zip code searches are possible? If not built in, any suggestions on implementing it?
KellyParticipantOkay, thanks!
KellyParticipantI really appreciate you hanging in there with me trying to figure this out.
KellyParticipantHere are the results with the code from 2771150…
Brother Francis Pick-up May 27, 12:30 pm
Ladies Group June 9, 10:30 am
Ladies Group July 14, 10:30 am
Ladies Group August 11, 10:30 am
Ladies Group September 8, 10:30 am
—-
Here are the results of the previous code showing all the events for the day…
Eucharistic Exposition T May 22, 12:00 am
Rosary Prayer T May 22, 8:35 am
Tues Mass May 22, 9:00 am
Light Weigh May 22, 9:45 am
—-
Here is what I’m looking for…
Eucharistic Exposition T May 22, 12:00 am
Eucharistic Exposition W May 23, 12:00 am
Rosary Prayer W May 23, 8:35 am
Wed Mass May 23, 9:00 am
Bible Study May 23, 10:00 amKellyParticipantThe code bit did not work so well, the entire code can be viewed here…
git://gist.github.com/2771031.git
Initially tried to modify this code to work, but did not see a _EventEndDate entry in the database when the events are recurring.
KellyParticipantI’d like the events to roll off the upcoming list once the end time passes. Right now, for example, there is an event today that started at 8:35 and ended at 9:35 that is still on the list and it’s after noon. Had it working before the upgrade with this bit of code…
=&meta_value='. date('Y-m-d G:i:s', current_time('timestamp')));
foreach($myposts as $post) :
setup_postdata($post);
date_default_timezone_set('America/Anchorage');
$event_date_raw = sp_get_end_date( $post->ID, false, "Y-m-d G:i:s" );
$event_date = strtotime($event_date_raw);
$now_raw = date("Y-m-d G:i:s");
$now = strtotime($now_raw);
if ($event_date >= $now) { ?>
<a href="ID) ?>">post_title ?>
ID, false, "F j, g:i a" ); } ?>KellyParticipantIt seems like it should, but on the site it does not… http://aksaintandrews.org/ it displays everything for that day. I’ve been using the calendar for a while now and have upgraded it to the latest version (to version 2 from 1 something), before the update I was able to display the upcoming events. Since the query is right, purhapse it is something with the upgraded event entries?
KellyParticipantHi Jonah, Yes, trying to query the next 5 upcoming events.
KellyParticipantCould it be because these are recurring events? Modified the query to use start and end dates as follows…
'start_date' = date ("Y-m-d G:i:s") ;
'end_date' = date ("Y-m-d G:i:s", strtotime ('+1 hour')) ;
The result is still the same. When reviewing the entry in the database saw only the initial event has an end date, all the other event dates had a start date but no specified end date.KellyParticipantHi Jonah, I really appreciate you looking at the code. I did not see a difference between our code except for the removal of an extra php opening/closing tag and spacing. I did paste your code into the site and I get the same result. http://aksaintandrews.org/ Any other ideas would be greatly appreciated.
KellyParticipantHi Jonah,
code using upcoming… git://gist.github.com/2719600.git
code using startdate… git://gist.github.com/2719613.git
Thanks for your help!KellyParticipantHi Jonah, thanks for your response. Modified the query to have start_date=>$now with $now = date(“Y-m-d G:i:s”), which produces the same results. It seems no different than using eventdisplay=>upcoming, the time is ignored. Basically I’m trying to display the next 5 upcoming events, with events falling off the list when the endtime passes.
KellyParticipantHi Henry. The events are recurring events with an end time, not all day events. I did upgrade from a previous version, not sure if it would have any impact or not.
-
AuthorPosts