Excerpts Help (6 posts)

  1. shoutlove
    Posted 8 years ago #

    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! :)

  2. moshu
    Posted 8 years ago #

    It should be in the index.php file of your theme - replace the_excerpt with the_content

  3. shoutlove
    Posted 8 years ago #

    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>
    		<?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>
    <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; ?>
    <?php get_footer(); ?>
  4. Chris_K
    Posted 8 years ago #

    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.

  5. shoutlove
    Posted 8 years ago #

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

  6. Chris_K
    Posted 8 years ago #

    I'm already on full text.

    Interesting... I'd have to confess to confusion!

    G'luck with the new theme then.

Topic Closed

This topic has been closed to new replies.

About this Topic