[EventCalendar] How do I remove the post date from events?

Johan Michaelsen johan.orgel at post.tele.dk
Wed Jun 6 11:13:57 UTC 2007


Hi
In the loop you could replace it with:

------------------------------------------------------------------------ 
----
<?php if (!in_category('3')) {
echo "<div class=\"post-date\"><span class=\"post-month\">";
echo the_time('M');
echo "</span> <span class=\"post-day\">";
echo the_time('d');
echo "</span></div>"; } ?>
------------------------------------------------------------------------ 
----

--- the number in ....!in_category('3')).... is your event-category
:-)

best regards
Johan





Den 06/06/2007 kl. 12.19 skrev Jon Bradley:

> Cheers for that. I'm afraid my PHP skills are a bit lacking. This  
> is the line where my post-date are added...
>
> <div class="post-date"><span class="post-month"><?php the_time 
> ('M') ?></span> <span class="post-day"><?php the_time('d') ?></ 
> span></div>
>
> And I want to remove it when it's the 'Dates' category.
>
> Any chance you could tell me what code I should use?
>
> Cheers,
>
> Jon
>
> ---------------------------------------------------------------------- 
> -------
>
> Original Message:
>
> Hi
>
> I guess that the date in the top left corner is created with
> "the_date" - the creation date of the post?
>
> You could avoid this in a IF tag like:
>
> if !is_category("whatever cat is your date-cat") { here's where the
> "the_date" tag is put in }
> else { --- do nothing--- }
>
> But of course you then will be breaking some of the fundamentals of
> you nice layout....
>
> best regards
> Johan
>
>
> <unknown.jpg>
>
> w. http://www.ninefootone.co.uk
> e. jon at ninefootone.co.uk
> t. 0114 232 2302
> m. 07870 687 844
>
>
> <unknown.jpg>
> _______________________________________________
> Blog: http://wpcal.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/20070606/47a5bfa3/attachment.html


More information about the EventCalendar mailing list