[EventCalendar] Remove post date and monthly archive

Johan Michaelsen johan.orgel at post.tele.dk
Fri Jul 13 07:13:53 UTC 2007


Is it the quote after the bracket?

> <?php if (in_category('9'))”


best regards
Johan


Den 12/07/2007 kl. 22.17 skrev Steve Faure:

> Thanks! But it returns an error:
>
> Unexpected ‘{‘ on line 1
>
>
>
> The snippet makes sense, and I’ve fiddled around with the bracket  
> and parentheses placements, and keep getting different errors. I’m  
> sure it’s something simple that I’m not getting.
>
>
>
>
>
> Steve
>
> steve at insidenorthside.com
>
>
>
>
>
> From: eventcalendar-bounces at firetree.net [mailto:eventcalendar- 
> bounces at firetree.net] On Behalf Of Mark Naylor
> Sent: Thursday, July 12, 2007 1:51 AM
> To: Support for EventCalendar plugin
> Subject: RE: [EventCalendar] Remove post date and monthly archive
>
>
>
> in reply to the first question...
>
> This snippet should work. What it is saying is if in category 9, do  
> nothing, else show the post date.
>
> However, it will ALWAYS work (when post in cat 9 is shown, no post  
> dates will beshown, so it might not be the solution you want)
>
>
>
> <?php if (in_category('9'))” { } else { ?>
>
> <p class="post-date">
>
> <?php the_time('D j M Y'); ?></p><?php> } ?>
>
>
>
> Mark
>
>
>
> From: eventcalendar-bounces at firetree.net [mailto:eventcalendar- 
> bounces at firetree.net] On Behalf Of Steve Faure
> Sent: 12 July 2007 04:49
> To: eventcalendar at firetree.net
> Subject: [EventCalendar] Remove post date and monthly archive
>
> Ok,
>
> First, my complements to the chef...the plugin is just what I need  
> to help the transition from a static, content heavy site to a  
> dynamic, interactive, content heavy site. I’ve dug through the  
> archives, and have some clue as to what I need to do.
>
> First, remove the post date from calendar entry posts. I’m going to  
> be filling in 2 months worth of local events, and I think it will  
> be confusing for the readers to see two dates, the post date and  
> the schedule date, on the entry. The code for my theme’s post.php  
> that I need to not display if the post category equals the event  
> category is
>
>
>
> <p class="post-date">
>
> <?php the_time('D j M Y'); ?></p>
>
>
>
> I know from the post http://wpcal-archive.firetree.net/2007-June/ 
> 002006.html that
> the use of an “if” statement like “if (!in_category('9'))” (nine  
> being my event category)
> can do the trick, I’m just not PHP savvy enough to actually get it  
> to work. I would just wipe that line out from the template  
> altogether, but the main blog entries will contain announcements  
> and news for which the post date will be pertinent.
>
>
>
> Issue 2 is the “keep events separate” option works to keep calendar  
> posts off the front page, but I’d like to keep them off the monthly  
> archive pages as well. I’ll have 30 calendar entries vying for  
> attention with the news and announcements that the main posts will  
> be used for.
>
>
>
> Blogsite: http://www.insidenorthside.com/insideblog/
>
>
>
> Using ec 3.1.1._rc1, wp version 2.2.1
>
>
>
> Please help the PHP challenged!
>
> Steve
>
> steve at insidenorthside.com
>
>
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 269.10.0/887 - Release Date:  
> 7/5/2007 1:55 PM
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 269.10.0/887 - Release Date:  
> 7/5/2007 1:55 PM
>
>
>
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 269.10.0/887 - Release Date:  
> 7/5/2007 1:55 PM
>
> _______________________________________________
> 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/20070713/0302b237/attachment.htm


More information about the EventCalendar mailing list