How to use multiple custom WordPress excerpt lengths

This snippet will let you use multiple custom excerpts length of the WordPress excerpts output.

Instructions
Add this code to your functions.php file.

Then use this syntax (excerpt tag) to display the custom excerpt length in your WordPress theme. (where ie. 24 is the excerpt character length)

Comments

One Reply to “How to use multiple custom WordPress excerpt lengths”

Leave a Reply

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

Siteground Web Hosting

Snippet Info

Tested with Wordpress v. 4.9.5
Last Modified: 15.05.2018
Last Reviewed: 15.05.2018

How to use multiple custom WordPress excerpt lengths
4.8 (96.67%) 24 votes
Please report broken snippets.
Report Broken Snippet