[Resolved] Changing length of the_excerpt without changing it on the whole wordpress
I’m using the popular Category Post Widget to show the latest posts from a category on a sidebar of my website.
The plugin uses the_excerpt to pull the excerpt and show it in the sidebar widget plugin.
Basically, I’d like to change the length of the_excerpt that is shown, just in that plugin in the sidebar.
On the above topic, some solutions to do this were presented but that would require to edit function.php and I don’t want to do that because I don’t want to affect all the instances of the_excerpt on my website, but just in the plugin.
The ideal would be if there were a parameter to directly tell the_excerpt how many words to pull. Unfortunately, such a parameter don’t exist, I think.
So, is there a solution ?
Maybe something else than the_excerpt to pull the excerpt with the possibility of choosing the number a words via some parameter. Or maybe a parameter for the_excerpt I don’t know of ?
Or another plugin that lets me do that? All of this seems pretty basic but after days I don’t seem to have found a solution everywhere I looked. Any help would be highly appreciated. Thanks
- The topic ‘[Resolved] Changing length of the_excerpt without changing it on the whole wordpress’ is closed to new replies.