Are you displaying excerpts on your WordPress blog without any excerpt related plugins?  Do you want to control the length of the excerpts?  This method is great if you do not want to use plugins to control the length of your excerpts.

Use the code below that you can insert into the file plugins.php on the root of your theme folder to increase or decrease the excerpt length.

{code type=”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’);


NB: Add the above code before the closing ?> tag in functions.php.

Book Your FREE Consultation

Take the first step to double your leads and sales. Schedule your complimentary 30-minute consultation now.







    There’s no commitment, just FREE, personalised, actionable strategies to build your business online!

    Free GA4 Ecommerce Marketing Dashboard

    Start measuring the ROI of your online store with the FREE Google Analytics 4 Ecommerce Marketing Dashboard template.







      You will be emailed a link to the report.

      Pin It on Pinterest