[EventCalendar] Problem with wp_list_categories() in EC 3.1.4

Ben Hayes ben at jackfruitdesign.com
Mon Dec 22 17:40:58 UTC 2008

Hi, I sent this last week to the list but didn't see any response to  
it... not sure if that's because it got lost, or because it's too  
difficult, or I didn't explain it properly, or what... just having  
another go...




I'm running WP 2.7

I have a list of categories functioning as sub-navigation. So in other  
words I get the children of  the current category and list them using  

    $cat = get_the_category();
    $parentId = $cat[0]->parent;
    wp_list_categories('order=DESC&title_li=&child_of=' . $parentId);

I have a category called 'Events' for which I'm using the EC plugin.  
So 'events' is just one item in my subnavigation alongside other things.

It works fine if there is at least 1 event in the current view (i.e.  
it shows a calendar with at least 1 event on it). But if the calendar  
is empty, then it breaks my wp_list_categories code and instead just  
lists *all* categories (i.e. not just the children - it breaks the sub- 

Any ideas how I could fix this? It used to be OK in EC version 3.1.1



P.S. I don't know if this is intentional (maybe it is) but it is  
impossible to leave comments on http://wpcal.firetree.net/ because you  
have to register first and there's no link to register...

Ben Hayes
Jackfruit Design Ltd
+44 (0) 20 7193 1162
Skype: jackfruitdesign

Registered office: 'Diamonds', Bells Yew Green, Tunbridge Wells, Kent,  
Registered in England and Wales no 5939030

This email is intended for the person or organisation to whom it is  
addressed. The contents are confidential and may be protected in law.  
Unauthorised use, copying or disclosure of it may be unlawful.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20081222/22c4c699/attachment-0001.htm

More information about the EventCalendar mailing list