WordPress.org

Support

Support » Themes and Templates » Excerpts Help

Excerpts Help

  • Hey. I know there’s a piece of code in my current theme, which you can view here that’s making only excerpts show on the front page. But I always really hate to mess around with templates myself (because of the disasterous consequences in the past) and I was hoping someone knew what snippet of code to alter or remove. Thanks so much! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • It should be in the index.php file of your theme – replace the_excerpt with the_content

    I’m not seeing the_excerpt…

    This is what my index.php page says:

    <?php get_header(); ?>
    
    	<div class="entry">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    
    					<br /><div class="end"><?php the_content_rss('', TRUE, '', 50); ?></div>
    
    				<div class="end">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></div>
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
    		</div>
    <br />
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    	<?php endif; ?>
    
    	</div>
    
    <?php get_footer(); ?>

    So… who built that theme? The creative use of
    <?php the_content_rss('', TRUE, '', 50); ?>
    isn’t one you’ll see all that often.

    (normally that would be the_excerpt or the_content).

    Since it IS using the_content_rss, you probably could go to Options -> Reading, scroll down to Syndication and change it to full text. That’ll affect both your blog and your feed.

    I’m already on full text. You know what? Never mind, I’m going to put a new theme up. Thanks anyway.

    I’m already on full text.

    Interesting… I’d have to confess to confusion!

    G’luck with the new theme then.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Excerpts Help’ is closed to new replies.
Skip to toolbar