[EventCalendar] FW: Customising EventCalendar

Theunis Groenewald Design Bureau contact at tmgdesign.co.za
Mon May 29 14:26:26 UTC 2006


Hey.

 

Thanks to ejm for all the help in skinning the EventCalendar. It still shows
those damned borders around the next and previous buttons (My CSS file has
grown to almost 4KB, and they still won’t go away), but I’ve learned to live
with them …

 

Now there’s another thing I need help with. Since I’m using WordPress as a
CMS rather than a blogging tool, I’ve set up only the home page to display
the news section (news posts). On the sidepanel of the home page a selection
of links related to the news section (Archives, Categories and Recent Posts)
are displayed.

The weird thing is that posts from the category dedicated to EventCalendar
are also displayed in the sidepanel. When I click on them, however, I’m
redirected to the Page Not Found message …

 

The question now is: How do I remove the posts belonging to the calendar
from the sidepanel? I want to remove the Calendar category, as well as the
posts that are posted in the Calendar category. Here’s the code for my
sidepanel:

 

 

<?php /* If this is the frontpage */ if ( is_home() ) { ?>


 

                <div id="sidenav">

                                <h2 class="sidebar">Nuus Argiewe</h2>

                                <ul id="sidenavlist1">

                                <?php wp_get_archives('type=monthly'); ?>

                                </ul>

                </div>

                                

                <div id="sidenav">

                                <h2 class="sidebar">Nuus
Kategorie&euml;</h2>

                                <ul id="sidenavlist2">

                                <?php
wp_list_cats('sort_column=name&hierarchical=0'); ?>

                                </ul>

                </div>

 

                <?php

                $today = current_time('mysql', 1);

                if ( $recentposts = $wpdb->get_results("SELECT ID,
post_title FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt
< '$today' ORDER BY post_date DESC LIMIT 10")):

                ?>

                

                                <div id="sidenav">

                                <h2 class="sidebar">Onlangse Nuus</h2>

                <ul id="sidenavlist3">

                                <?php

                                                                foreach
($recentposts as $post) {

                                if ($post->post_title == '')

                                $post->post_title = sprintf(__('Post #%s'),
$post->ID);

                                                echo "<li><a
href='".get_permalink($post->ID)."'>";

                                                the_title();

                                                echo '</a></li>';

                                                                }

                                ?>

                </ul>

                                </div>

<?php endif; ?>

 

----------------------------------------------------------------------------
----------------------------------------------------------------------------
---------------------

 

I really hope that someone can help me out with this.

 

Thanks in advance …

 

 

Theunis.

 


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.3/350 - Release Date: 2006/05/28



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.3/350 - Release Date: 2006/05/28
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20060529/fa92da38/attachment.html


More information about the EventCalendar mailing list