currently my wordpress theme shows all the words in a post on the homepage, even of very long posts. I would like to limit that to a reasonable number lets say 1500 words max to be shown on the home page, then there should be a “read more” link underneath.
Im using the toolbox theme heres the 1. content.php and 2 index.php.
1. https://i.stack.imgur.com/rUWZv.png
2. https://i.stack.imgur.com/YrZGS.png
You could use the ‘insert more tag’ in the wordpress WYSIWYG.
Otherwise you could use something like this to limit the word count:
(Take this as pseudocode for now as I dont have time to test it.)
Then link to the article: