[EventCalendar] Remove post date and monthly archive
Steve Faure
Steve at insidenorthside.com
Fri Jul 13 13:26:25 UTC 2007
That was it, solution provided by MarkNaylor at signet-solutions.com:
<?php if
(in_category('9')){ } else { ?>
<p
class="post-date">
<?php the_time('D j
M Y'); ?></p><?php } ?>
Try this
one
[mailto:steve at insidenorthside.com]
Sent: Fri 13/07/2007
02:30
To: Mark Naylor
Subject: RE: [EventCalendar] Remove
post date and monthly archive
Thanks for your effort. I’m still getting an error
message, this time on line 3:
Parse error: parse
error, unexpected '}' in /insideblog/wp-content/themes/connections/post.php
on line 3
Stephen C.
Faure
Inside Northside
Magazine
985-626-9684
steve at insidenorthside.com
From:Mark
Naylor [mailto:MarkNaylor at signet-solutions.com]
Sent: Thursday, July 12, 2007 3:34
PM
To:
steve at insidenorthside.com
Subject: FW: [EventCalendar] Remove post
date and monthly archive
Try this one, looks
like a stray quote slipped in
<?php if
(in_category('9')){ } else { ?>
<p
class="post-date">
<?php the_time('D j
M Y'); ?></p><?php> } ?>
Mark
-----Original Message-----
From: Johan Michaelsen <johan.orgel at post.tele.dk>
To: Support for EventCalendar plugin <eventcalendar at firetree.net>
Date: Fri, 13 Jul 2007 09:13:53 +0200
Subject: Re: [EventCalendar] Remove post date and monthly archive
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 [mailto:steve at insidenorthside.com]
From:eventcalendar-bounces at firetree.net
[mailto:eventcalendar-bounces at firetree.net
[mailto:eventcalendar-bounces at firetree.net]] On Behalf OfMark 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
[mailto:eventcalendar-bounces at firetree.net]] On Behalf OfSteve Faure
Sent: 12 July 2007 04:49
To: eventcalendar at firetree.net [mailto: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
<
/FONT>
<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
[http://wpcal-archive.firetree.net/2007-June/002006.html] thatthe 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/
[http://www.insidenorthside.com/insideblog/]
Using ec3.1.1._rc1, wp version 2.2.1
Please help the PHP challenged!
Steve
steve at insidenorthside.com [mailto: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
--
Interna
l 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 [http://wpcal.firetree.net/]/
EventCalendar at firetree.net [mailto:EventCalendar at firetree.net] mailing list
Unsubscribe: http://penguin.firetree.net/eventcalendar
[http://penguin.firetree.net/eventcalendar]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20070713/5cc6d1c1/attachment-0001.htm
More information about the EventCalendar
mailing list