[EventCalendar] Order by start date
Gabriel Merovingi
info at merovingi.com
Thu Jun 30 20:04:44 BST 2011
Im not sure what to do here.
The order by start date is set by the ec3_filter_posts_orderby()
function in eventcalendar3.php and hooked in by using add_filter(
'posts_orderby', 'ec3_filter_posts_orderby', 11 ); (bottom of same file)
You could if you want experiment around with this and maybe have it
always on. I never ran into this problem since I am a huge fan of
ec3_get_events() function for when ever I need to list events. Plus
generally its enough for me to keep events separate.
Cheers
Gabe
On Jun 30, 2011 20:48 "{ Indira Montoya }" <simbolosocultos at yahoo.com>
<simbolosocultos at yahoo.com> wrote:
> Correction:
>
> no order and past events :(
>
>
>
> 10 PRINT "Indira Montoya"
> 20 PRINT "http://www.hipermedula.org"
> 30 PRINT "http://www.micromundo.net" 40 PRINT
> "http://efimeros.micromundo.net"
> 60 END
>
>
> From: { Indira Montoya } <simbolosocultos at yahoo.com>
> <simbolosocultos at yahoo.com>
> To: "gabriel at merovingi.com" <gabriel at merovingi.com>; Support for
> EventCalendar plugin <eventcalendar at firetree.net>; Support for
> EventCalendar plugin <eventcalendar at firetree.net>
> <eventcalendar at firetree.net>
> Sent: Thursday, June 30, 2011 3:43 PM
> Subject: Re: [EventCalendar] Order by start date
>
> It works with the order, but it brings past events too.
>
> tried adding &ec3_after=today but it didn't work :(
>
>
>
> 10 PRINT "Indira Montoya"
> 20 PRINT "http://www.hipermedula.org"
> 30 PRINT "http://www.micromundo.net" 40 PRINT
> "http://efimeros.micromundo.net"
> 60 END
>
>
> From: Gabriel Merovingi <info at merovingi.com> <info at merovingi.com>
> To: gabriel at merovingi.com; Support for EventCalendar plugin
> <eventcalendar at firetree.net> <eventcalendar at firetree.net>
> Sent: Thursday, June 30, 2011 3:32 PM
> Subject: Re: [EventCalendar] Order by start date
>
> Ups.
>
>
>
> Sorry of course it should only be one & sign in the query not &&
>
>
> On Jun 30, 2011 20:30 "Gabriel Merovingi" <info at merovingi.com>
> <info at merovingi.com>
> <info at merovingi.com> <info at merovingi.com> wrote:
>
> > How about this:
> >
> >
> >
> > query_posts( "ec3_listing=event&posts_per_page=7" );
> >
> > or
> >
> > query_posts( "ec3_listing=event&&ec3_days=5" );
> >
> > On Jun 30, 2011 19:15 "{ Indira Montoya }"
> > <simbolosocultos at yahoo.com> <simbolosocultos at yahoo.com>
> > <simbolosocultos at yahoo.com> <simbolosocultos at yahoo.com>
> > <simbolosocultos at yahoo.com> <simbolosocultos at yahoo.com>
> > <simbolosocultos at yahoo.com> wrote:
> >
> > > hey, thanks!
> > >
> > > yes, but I need events to be normal posts, they are both posts and
> > > events, and have to have categories, taxonomies, etc.
> > >
> > > Is there other way (a sql query for example, or something similar)
> > >
> > > that could bring the same result?
> > >
> > >
> > >
> > >
> > > From: Gabriel Merovingi <info at merovingi.com> <info at merovingi.com>
> > > <info at merovingi.com>
> > > <info at merovingi.com> <info at merovingi.com>
> > > To: { Indira Montoya } <simbolosocultos at yahoo.com>; Support for
> > > EventCalendar plugin <eventcalendar at firetree.net>
> > > <eventcalendar at firetree.net>
> > > <eventcalendar at firetree.net> <eventcalendar at firetree.net>
> > > <eventcalendar at firetree.net> <eventcalendar at firetree.net>
> > > <eventcalendar at firetree.net>
> > > Sent: Thursday, June 30, 2011 2:10 PM
> > > Subject: Re: [EventCalendar] Order by start date
> > >
> > > Hey!
> > >
> > >
> > >
> > >
> > > Sounds like you have your plugin set to "Events are normal posts".
> > > If
> > > you change to "Keep Events Separate", you should always get things
> > > returned according to the schedule and not the post date.
> > >
> > >
> > >
> > >
> > > Kind Regards
> > >
> > > Gabriel
> > >
> > >
> > > On Jun 30, 2011 18:55 "{ Indira Montoya }"
> > > <simbolosocultos at yahoo.com> <simbolosocultos at yahoo.com>
> > > <simbolosocultos at yahoo.com>
> > > <simbolosocultos at yahoo.com> <simbolosocultos at yahoo.com>
> > > <simbolosocultos at yahoo.com>
> > > <simbolosocultos at yahoo.com> <simbolosocultos at yahoo.com>
> > > <simbolosocultos at yahoo.com>
> > > <simbolosocultos at yahoo.com> <simbolosocultos at yahoo.com> wrote:
> > >
> > > > Hi all,
> > > >
> > > > this is not the first time I use this plugin, and it always work
> > > > fine.
> > > >
> > > >
> > > >
> > > > I am trying to make a small list of events with this:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > query_posts('ec3_after=today&showposts=7');
> > > > while(have_posts()) { the_post();
> > > >
> > > >
> > > >
> > > >
> > > > It works, except it is using the post date to order the list.
> > > >
> > > >
> > > >
> > > >
> > > > I've tried almost everything:
> > > >
> > > > ec3_filter_posts_orderby=DES
> > > >
> > > > ec3_start=ASC
> > > >
> > > > ec3_start
> > > >
> > > > order_by_start
> > > >
> > > > orderby=start
> > > >
> > > > orderby=ec3_start
> > > >
> > > >
> > > >
> > > >
> > > > etc, etc
> > > >
> > > >
> > > >
> > > >
> > > > Is there a way to make it work?
> > > >
> > > > Post date and event date do not correlate, I post events maybe 6
> > > > months
> > > > before they happen, so post date is not an option.
> > > >
> > > >
> > > >
> > > >
> > > > thank you for your help!
> > > >
> > > > Indira
> > > >
> > > >
> > >
> > >
> > >
>
> _______________________________________________
> Blog: <http://wpcal.firetree.net/>
> <EventCalendar at firetree.net> <EventCalendar at firetree.net> mailing list
> Unsubscribe: <http://penguin.firetree.net/eventcalendar>
>
>
>
>
> _______________________________________________
> Blog: <http://wpcal.firetree.net/>
> <EventCalendar at firetree.net> <EventCalendar at firetree.net> mailing list
> Unsubscribe: <http://penguin.firetree.net/eventcalendar>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://penguin.firetree.net/pipermail/eventcalendar/attachments/20110630/bf8161cd/attachment-0001.htm>
More information about the EventCalendar
mailing list