Add character count to title and excerpt in WordPress post editor

If you want to have control over how many character has the title and excerpt of your new blog, you can add this information without any plugin.

This is helpful if you want to have a better control over how the post will be displayed on Google search engine result pages.

For both title and excerpt, character limits for Google SERP will be displayed as well. It will look like in the screenshot below:

Add character count to title and excerpt in WordPress post editor

Open functions.php file in your theme’s directory and paste at the end the code from below:








Obviously, there are plugins that simulate Google SERP view, naming only WordPress SEO by Yoast, but if you don’t use these plugins, with this piece of code, you are not completely blind.

More WordPress tips to check out:

Share

Comment

Let's get in touch on Twitter or Facebook.