I think I’m just about there. I’m getting an error coder for line 68! I have to assume that the conditional tag I’ve placed in lines 10-14 will work but apparently there’s some kind of conflict with line 68 and/or thereafter. Anyone able to see the problem?
***************************************
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div class=”main-copy”>
<!– Start Posts –>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php if (in_category(‘4’)) : ?>{
echo ‘This article is reprinted with the express permission of the author. Additional bio and contact material about the author can be found at the end of the article. In addition, if you have sales tips or strategies articles you’d like to see published on this site we invite you to <A HREF=”mailto:[email protected]”>submit your articles</A> for review. Good selling!’;
} else {
echo ”;
}
<!– ##### Main Copy ##### –>
<div class=”date-header”><?php the_time(‘F jS, Y’) ?></div>
<h1 style=”border-top: none; padding-top: 0;” id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h1>
<div class=”post”><?php the_content(‘Read the rest of this entry »’); ?>
Posted by <?php the_author() ?> in <?php the_category(‘, ‘) ?>
<?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?> <?php edit_post_link(‘Edit’,”,”); ?>
</div><!– post –>
<?php link_pages(‘Pages: ‘, ”, ‘number’); ?>
<p class=”postmetadata alt”>
This entry was posted
<?php /* This is commented, because it requires a little adjusting sometimes.
You’ll need to download this plugin, and follow the instructions:
https://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
/* $entry_datetime = abs(strtotime($post->post_date) – (60*120)); echo time_since($entry_datetime); echo ‘ ago’; */ ?>
on <?php the_time(‘l, F jS, Y’) ?> at <?php the_time() ?>
and is filed under <?php the_category(‘, ‘) ?>.
You can follow any responses to this entry through the comments <?php comments_rss_link(‘RSS 2.0’); ?> feed.
<?php if ((‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
// Both Comments and Pings are open ?>
You can leave a response, or “>trackback from your own site.
<?php } elseif (!(‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
// Only Pings are Open ?>
Responses are currently closed, but you can “>trackback from your own site.
<?php } elseif ((‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
// Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.
<?php } elseif (!(‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Both comments and pings are currently closed.
<?php } edit_post_link(‘Edit this entry.’,”,”); ?>
<!– postmetadata alt –>
<?php comments_template(); ?>
<?php // comments_template(); ?>
<?php endwhile; else: ?>
<?php _e(‘Sorry, no posts matched your criteria.’); ?>
<?php endif; ?>
<?php get_footer(); ?>