Function to change the length of Exerpt

Posted by Prem Tiwari | Updated on

By default all excerpts are capped at 55 words. Utilizing the code below you can override this default settings:

This example changes the excerpt length to 100 words, but you can use the same method to change it to any value.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers