OscarminiOscarmini
  • Home
  • Reviews
  • Computers
  • How Tos
  • Travel & Lifestyle
  • Phone ROMs
  • Contact
    • Advertise
    • About Us
Facebook Twitter Instagram
OscarminiOscarmini
  • Home
  • Reviews
  • Computers
  • How Tos
  • Travel & Lifestyle
  • Phone ROMs
  • Contact
    • Advertise
    • About Us
OscarminiOscarmini
Home»Web Design Tips»Wordpress»How to Display Post Excerpts in WordPress Themes
Wordpress

How to Display Post Excerpts in WordPress Themes

Oscar FrankBy Oscar Frank2 Mins Read
Share
Facebook Twitter LinkedIn WhatsApp Pinterest Email

If you are blogger whose posts are normally long, your blog won’t looking appealing in design to your users when they visit your blog and find out the content of all post been displayed on your homepage. Adding a Read More link with an Excerpt of the first few letters of the blog post adds professionalism to your blog.

  • Read: How to Add Read More and Excerpts to Blogger

adding excerpts to wordpressThere are quite some advantages to this such as decreasing your blogs Load Time, and it increases your Page Views and people would need to open article before they can read the full blog post.
Here is how you can add excerpts to your wordpress theme.

 

Adding Excerpts to your WordPress Theme

  • Login to your WordPress Dashboard, click on Appearance > Editor.
  • Click on Functons.php on the right sidebar.
    Copy and paste this code below in the last line of your functions.php

    // Changing excerpt length
    function new_excerpt_length($length) {
    return 100;
    }
    add_filter(‘excerpt_length’, ‘new_excerpt_length’);

    // Changing excerpt more
    function new_excerpt_more($more) {
    return ‘…’;
    }
    add_filter(‘excerpt_more’, ‘new_excerpt_more’);

    Now click on Update File

  • Now click on index.php , search for

    <?php the_content(); ?>

    And replace with

    <?php the_excerpt(); ?>

    Click on Update file.

  • Perform the same process you made on index.php to archive.php file, search.php and category.php (if they exist)/li>

Reload your blog and see the magic. Why not subscribe to our newsletters today.

Wordpress Wordpress Themes

Related Posts

WordPress Blog Hosting made easy with SeekaHost Blog Hosting Control Panel

December 4, 2020

How to Create a Website with Elementor Page Builder in WordPress

April 1, 2019

Top 3 Reasons Backing Up Your Files Offsite Is Extremely Important

February 27, 2018
View 3 Comments

3 Comments

  1. Ajay Singh on June 21, 2013 5:59 am

    thanx Oscar Frank i was searching for this

    Reply
    • Oscar Frank on June 21, 2013 11:14 am

      Hi Ajay,
      I’m so glad you found your solution here.

      Reply
  2. Philip Okugbe on June 15, 2014 7:13 am

    Thanks. I once looked for this

    Reply

Leave A Reply Cancel Reply

Recent Posts
  • 10 Insane TikTok Trends That Shook The Internet
  • 10 Tech Innovations that will Change the Way we Live & Work
  • Curacel, a Nigerian Insurtech Startup, Raises $3 Million
  • Google Redesigns and Upgrades Gboard Toolbar
  • Internet Explorer to be Permanently Disabled
Get Exclusive Tech Insights!
Oscarmini
Facebook Twitter Instagram YouTube
© 2023 Oscarmini Co. Designed by illBytes.

Type above and press Enter to search. Press Esc to cancel.