Tagged: excerpt

Change wordpress excerpt length 0

Change wordpress excerpt length

Copy and paste the given blow code in your theme functions.php file which will change the length of the wordpress excerpt function. function ratanjyot_solutions_excerpt_length($length) { return 50; } add_filter(‘excerpt_length’, ‘ratanjyot_solutions_excerpt_length’); The above code set...

Customize wordpress excerpt ellipsis with post permalink 0

Customize wordpress excerpt ellipsis with post permalink

Copy and Pase the given blow code in your functions.php file. This code will replace the ellipsis with post permalink. function new_excerpt_more($content) { return ‘<div><a href=”‘. get_permalink() .’”>Read More…</a></div>’; } add_filter(‘excerpt_more’, ‘new_excerpt_more’); You can...