The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join

Functions

Add a Word Count Column to the WordPress Posts List

Steps Add the PHP code to your theme’s functions.php. Save the changes. Go to WordPress Dashboard → Posts → All Posts. A new Word Count column will appear. Each post will show its approximate word count.




Add a Custom Body Class to WordPress Posts

Steps Add the PHP code to your theme’s functions.php. Save the changes. Open any single blog post. WordPress will add the custom-blog-post class to the <body> element.


Change the WordPress “Read More” Text

Steps Add the PHP code to your theme’s functions.php. Change Continue Reading to your preferred text. Save the changes. Check a page displaying automatic post excerpts.


Add a Custom Excerpt Length to WordPress Posts

Steps Add the PHP code to your theme’s functions.php. Change 25 to the number of words you want. Save the changes. WordPress will use the new length for automatically generated excerpts.





Automatically Add Last Updated Date to WordPress Posts

Show readers when a blog post was last updated instead of only displaying the original publication date. This is useful for tutorials, guides, news, and other content that gets updated regularly. Steps Add the code below to your theme’s functions.php. Save the changes. Open any WordPress blog post. The last updated date will appear before […]


Proudly supported by