Hey.
Yeah, it's possible. Look at this:
$params["content_type"] = Post::type('event');
$params["status"] = Post::status('published');
$params["nolimit"] = ""; // disables limit
$params["has:info"] = "eventdate";
$params["orderby"] = "ABS(info_eventdate_value) DESC";
$events = Posts::get($params);
Assuming your date field is named eventdate and the dates are stored
as unix timestamp, this will do. Feel free to ask if it does not work.
On 5 Mrz., 15:31, Jonas Kindler <[email protected]> wrote:
> Hi everyone
> I use the partyTime plugin to display my events on my homepage. When I
> displayed the events in my theme I recognized that they where ordered by
> publish date. Is there a way to sort them by start date?
>
> Jonas
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/habari-users