To use the WordPress limit excerpt

Add this in theme functions.php

function new_excerpt_more( $more )
{
    return ' Load More';
}
function custom_excerpt_length( $length )
{
    return 500;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 500);
add_filter('excerpt_more', 'new_excerpt_more');

To use:

<?php the_excerpt();?>
The following two tabs change content below.

Md Jahed

Latest posts by Md Jahed (see all)

Leave a Reply

Your email address will not be published. Required fields are marked *