How to Display a Post Excerpts Tag

The "Post Excerpts" tag is a feature in WordPress that lets you post excerpts of a particular blog post on the homepage of your website. This serves as a marketing technique where the post excerpt gives your readers only the first few lines of a post and entices them to click to read more. You may need administrative rights to add the Post Excerpts tag to your account.

Instructions

    • 1

      Log in to the Web hosting service that you use for WordPress.

    • 2

      Locate the file labeled "index.php." Double-click it to open the file.

    • 3

      Locate the following line in the script:

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

    • 4

      Replace the above line with:

      <?php the_excerpt(); ?>

    • 5

      Add the following line beneath the line you just replaced:

      <a href="<?php the_permalink(); ?>" title="Read the rest of <?php the_title(); ?>" class="more-link">Read the rest of this entry »</a>

    • 6

      Click the "File" tab and select "Save."

Related Searches:

References

Comments

Related Ads

Featured