I can’t really tell where that original line to thumbnail it is ; the code I altered was only the line
<?php the_content( ); ?>. The orginal line was <?php echo dp-clean($post->post-content, 300); ?>
Can I replace that main page thumbnail with a generic thumbnail for all main page posts easily ?
<?php get_header(); ?>
<!– BEGIN content –>
<div id=”content”>
<?php
$tmp_query = $wp_query;
query_posts(‘cat=’ . get_cat_ID(dp_settings(‘featured’)));
if (have_posts()) :
$first = true;
while (have_posts()) : the_post();
ob_start();
?>
<li<?php if ($first) echo ‘ class=”first”‘; ?>>“><?php dp_attachment_image($post->ID, ‘full’, ‘alt=”‘ . $post->post_title . ‘”‘); ?>
<?php
$photos .= ob_get_clean();
ob_start();
?>
<li<?php if ($first) echo ‘ class=”first”‘; ?>>
<h2>“><?php the_title(); ?></h2>
<p><?php echo dp_clean($post->post_content, 300); ?></p>
” class=”readmore”>Read Full Story
<?php
$text .= ob_get_clean();
$first = false;
endwhile;
endif;
?>
<!– begin featured –>
<div class=”featured”>
<div class=”thumb”><div class=”b”>
<ul class=”photo”>
<?php echo $photos; ?>
<ul class=”text”>
<?php echo $text; ?>
</div></div>
</div>
<!– end featured –>
<?php
$wp_query = $tmp_query;
if (have_posts()) :
while (have_posts()) : the_post();
$arc_year = get_the_time(‘Y’);
$arc_month = get_the_time(‘m’);
$arc_day = get_the_time(‘d’);
?>
<!– begin post –>
<div class=”post”>
<div class=”title”>
<h2>“><?php the_title(); ?></h2>
<p class=”details”>Posted by: <?php the_author_posts_link(); ?> on “><?php the_time(‘M jS, Y’) ?>
</p>
<p class=”comments”><?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?></p>
</div>
<div class=”l”>
“><?php dp_attachment_image($post->ID, ‘thumbnail’, ‘alt=”‘ . $post->post_title . ‘”‘); ?>
</div>
<div class=”r”>
<?php the_content( ); ?>
<p>“></p>
</div>
<div class=”meta”>
<div class=”tags”>
Tags: <?php the_tags(”); ?>
</div>
<div class=”undercat”>
Filed Under: <?php the_category(‘, ‘) ?>
</div>
</div>
</div>
<!– end post –>
<?php endwhile; else : ?>
<div class=”notfound”>
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that is not here.</p>
</div>
<?php endif; ?>
<!– begin post navigation –>
<!– END content –>
</div>
<?php get_sidebar();
get_footer(); ?>