Home | About | Help Center | Privacy Policy

August 20th, 2009

How to auto add excerpt in the wordpress blog home page


Excerpt are the best way to automate the “read more” tag on every post of your blog. It helps in enhancing the loading time of your blog and gave space to other post on your home page. Moreover this also helps you in optimizing the wordpress blogs as can help in showing more post in less area.  How to auto add excerpt in the wordpress blog home page

How to add excerpt in the index page of the wordpress blog

Few simple steps to add excerpt in your wordpress blog
1.Open your main index.php file (located in wp-content/theme/your-theme)
2.Check for similar codes

<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" 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>
<div class="entry">
<?php the_content('Read the rest of this entry &raquo;'); ?>
</div>
<p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong>
<?php edit_post_link('Edit','','<strong>|</strong>'); ?>
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
</p>
</div>

3.Replace

<?php the_content('Read the rest of this entry &raquo;'); ?>

with

<?php the_excerpt();?>

Alternate options for non geeky friends

Use Advanced Excerpt Word plugin – This plugin will ad HTML markup in excerpt together with correcting HTML that might have been broken due to the trimming process.



You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackbackfrom your own site.

Subscribe to our FREE Rss Feed

Hot in Social Media


10 Best Social Media Case Studies

10 Tips To Become Social Without Using Social Media

Top 10 Tips To Enhance Personal Branding

Top 10 Expectations Of Social Media In 2010

What's Hot

Similar Interesting Posts

Tutorials On

6 Responses to “How to auto add excerpt in the wordpress blog home page”

  1. How to auto add excerpt in the #wordpress blog home page http://is.gd/2uRF2

  2. Thanks. I was looking for a plugin that would auto insert the more tag into my existing posts, but this does the trick real easy.
    Suzette C´s last blog ..Alaska Car Shipping My ComLuv Profile

  3. Research Chevy 350 motors, engines, and purchase quality Chevy and GM 350 motors. You will find helpful information, stats, and articles about the GM Chevrolet 350 (5.7L) motor and its use on boats, trucks and passenger cars.

    chevy 350 engine

  4. How to auto add excerpt in the wordpress blog home page http://bit.ly/4tMBgU #wordpress #tips

Trackbacks

  1. what are some good alternates to flowers as centerpieces at weddings? | Flowers On Line
  2. wordpress excerpt | WORDPRESS

Leave a Reply

CommentLuv Enabled

Additional comments powered by BackType

    Follow @honeytech On Twitter

    RT @HoneytechBlog: 45 Fresh Useful JavaScript and jQuery Techniques and Tools http://bit.ly/ckEB4E
  • Subscribe For Tips


  • Top Fans Of The Day

Hot Tags

Linux open source blogging Social media ubuntu browser Internet Firefox iphone free mobile tips Windows WordPress Plugin mistakes Social google Web design How to Designs