[EventCalendar] Ordering problem: categories
Helene Zisook Speer
helenezs at millerdesignworks.com
Wed Apr 4 15:00:44 UTC 2007
Johan, you have just helped me immensely!
I had my categories set up in exactly the same way.
There seems to be an issue with "regular" archive pages. If I click on
April in the calendar, my events do not sort by event date. But if I
make a query page like yours, using "ec3_after" and "ec3_before" to
make my April page, the sort works fine.
So I either have to change the calendar link or find a fix for the
regular archive pages.
Thanks so much!
-Helene
On Apr 4, 2007, at 5:13 AM, Johan Michaelsen wrote:
> Hi
>
> One thing to have in mind is that you should distinct between ordinary
> posts and events.
>
> I have eventCalendar set up so that category 2 (Arrangements) contains
> the events.
> To separately show the different kinds of arrangements i made a number
> of sub-categories of category 2. (Cat 2 is excluded from (not shown)
> the cat-list)
>
> In that way you can put a link to a sub-cat of the arrangement-cat,
> and you get the list of only those arrangements of that kind.
>
> For instance:
>
> Arrangements (cat 2)
> Rehearsals (cat 3 - sub-cat of cat 2)
> Concerts (cat 4 - sub-cat of cat 2)
> Services (cat 5 - sub-cat of cat 2)
> Workshops (cat 6 - sub-cat of cat 2)
>
>
> The event-category (Arrangements) is category 2
> So the link to all the arrangements would be:
>
> http://www.greenvalleygospel.dk/wordpress/?ec3_after=today&cat=2
>
> The sub-cat (Concerts)
>
> http://www.greenvalleygospel.dk/wordpress/?ec3_after=today&cat=4
>
>
> This works fine for me until I come up with a better solution.
>
> You can have a look at our website:
>
> http://www.greenvalleygospel.dk/
>
> (I'm sorry! It's in DANISH!!!!)
>
>
>
> Though, I have not been able to "strip" the function ec3_get_events()
> to exclude some of the sub-cats. Therefore I have made a special query
> just to show the (for instance) concerts and services as a list.
>
> I admit that I am not a programmer!!!!! So you may find it poor as a
> solution.
> Actually I'm looking for a better solution, because the "showposts=30"
> has to be regulated if you don't want past events to show up.....
>
>
> -----------------------------------
> <ul class="events" >
>
> <?php
> $query_streng = 'cat=2&showposts=30';
> $my_query = new WP_Query($query_streng);
> while ($my_query->have_posts()) : $my_query->the_post();
> ?>
>
> <?php if (in_category('3') AND !in_category('4') AND !in_category('5')
> OR in_category('12') OR in_category('13')) continue; ?>
>
> <li style="margin: 0px; margin-left: 0px; padding: 0px; line-height:
> auto"><?php echo ec3_get_schedule('%s ','%1$s<br />- %2$s','%s');
> ?></li>
> <ul>
> <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent
> Link to <?php the_title(); ?>"><?php the_title(); ?></a>
> </li>
> </ul>
>
> <?php endwhile; ?><!--end of this query-->
>
> </ul>
> ----------------------------------
>
> best regards
> Johan
>
>
>
> Den 03/04/2007 kl. 23.12 skrev Sara Cormeny:
>
>> I don't have a workaround, but I did want to let you know that I had
>> the same issue, and I hope that the programmer fixes/changes it
>> sometime.
>>
>> I think that custom fields is the best workaround, and a good choice
>> on your part.
>>
>> Best of luck!
>>
>> -Sara
>>
>>
>> On Apr 3, 2007, at 2:04 PM, Helene Zisook Speer wrote:
>>
>>> I've discovered that if my posts are in both the events category and
>>> another category, a month's archive page doesn't order by event
>>> date. I got rid of all my other categories so that the only
>>> category is my events category, and now the ordering is perfect.
>>>
>>> Does anybody have a workaround for this? I would love to have
>>> categories of events. I was thinking about using custom fields
>>> instead until ec3 supports multiple categories.
>>>
>>> Any tips?
>>>
>>> Thanks,
>>>
>>> -Helene
>>>
>>>
>>> _______________________________________________
>>> Blog: http://wpcal.firetree.net/
>>> EventCalendar at firetree.net mailing list
>>> Unsubscribe: http://penguin.firetree.net/eventcalendar
>>
>>
>> _______________________________________________
>> Blog: http://wpcal.firetree.net/
>> EventCalendar at firetree.net mailing list
>> Unsubscribe: http://penguin.firetree.net/eventcalendar
>
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
>
More information about the EventCalendar
mailing list