1. the_excerpt_reloaded (plugin) works really well for this. It has been revised here and the original documentation is here.
2. WP Admin > Settings > Reading > find the setting on this page.
I’ve downloaded, uploaded and activated the plugin, but I’m not seeing anything different on the ‘Settings > Reading’ page than I saw before. The author’s page mentions something about activating it in The Loop. I’ve read the docs on The Loop from WordPress, but I’m concerned about editing the index.php file when I’m no all that familiar with PHP. Plus, I’m not even sure I should be doing that at all in this case.
Any additional direction you can offer?
Okay, I think my problem really is in The Loop, so please disregard my previouspost. However, when I tried playing with the index.php file, I got an odd result. I placed the proper tags between The Loop, but instead of getting just an excerpt on the main page, I got the excerpt followed by the actual post. I’m sure this is because of the layout of the code, and that some sort of simple boolean check would resove it. But as I mentioned, I’m no good with PHP. If possible, could someone help me with editing the following code from the iNove theme so that the excerpt alone will show up on the main blog page, but the full article text will show up on every other page?
Here’s what I’ve got:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); update_post_caches($posts); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a class="title" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="info">
<span class="date"><?php the_time(__('F jS, Y', 'inove')) ?></span>
<div class="act">
<span class="comments"><?php comments_popup_link(__('No comments', 'inove'), __('1 comment', 'inove'), __('% comments', 'inove')); ?></span>
<?php edit_post_link(__('Edit', 'inove'), '<span class="editpost">', '</span>'); ?>
<div class="fixed"></div>
</div>
<div class="fixed"></div>
</div>
<div class="content">
<?php the_content(__('Read more...', 'inove')); ?>
<p class="under">
<?php if ($options['categories']) : ?><span class="categories"><?php the_category(', '); ?></span><?php endif; ?>
<?php if ($options['tags']) : ?><span class="tags"><?php the_tags('', ', ', ''); ?></span><?php endif; ?>
</p>
<div class="fixed"></div>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="errorbox">
<?php _e('Sorry, no posts matched your criteria.', 'inove'); ?>
</div>
<?php endif; ?>
Thanks for any help that can be offered with this.
-Will
Sorry I didn’t make myself more clear at first — I was not writing steps, I was responding to your list. So, #1, after you install the_excerpt_reloaded plugin, here’s what you do:
In your code you will see <?php the_content(__('Read more...', 'inove')); ?>
. In WordPress you can replace the_content
with the_excerpt
(docs), but the_excerpt_reloaded gives you more control over the excerpt.
So, replace <?php the_content(__('Read more...', 'inove')); ?>
with <?php the_excerpt_reloaded(); ?>
and then use the plugin’s documentation to tweak the output using different parameters.
WP Admin > Settings > Reading has nothing to do with the_excerpt. The default setting for WordPress is to show the most recent 5 (I think) articles on the homepage. You can change this to 1 or 100. Whatever you like.