Adding Multiple Custom Excerpt Lengths by characters In WordPress

HI Guys, Very long time i never post any Article. today i will tell you how to add multiple custom excerpt length in post type of wordpress.

By default WordPress excerpts are set to 55 words, But what if you wanted a different excerpt length on your portfolio, blog archives or custom post type than?

Don’t worried about it, today i will tell you how to set Excerpt Length by Character.

First i tell you by the custom function you can create for excerpt. Below code copy in your function.php file –

After put this above code in function file, put below code into you blog loop file –

Now you think that if your theme have many custom post type and you want different excerpt length than? Don’t bother about it below code solve your problem, just put this code into function file –

this code will work common your all post type excerpt, now below code put into loop file and set how many characters you want in your post, you can use these code many times in your theme by changing length 🙂

Hope this code work for you and solve your problem.

“Adding Multiple Custom Excerpt Lengths by characters In WordPress”