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.
Steps Add the PHP code to your theme’s functions.php. Save the changes. Go to WordPress Dashboard → Pages → All Pages. A new Page ID column will appear. Each page will show its unique ID.
Steps Add the PHP code to your theme’s functions.php. Save the changes. Go to WordPress Dashboard → Pages → All Pages. The Page ID will appear before each page title.
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.
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.
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.
Steps Add the PHP code to your theme’s functions.php. Save the changes. Open any single blog post. The disclaimer will automatically appear after the post content.
Steps Add the PHP code to your theme’s functions.php. Save the changes. Open a post where comments are disabled. The custom message will be displayed instead of the comments section.
Steps Add the PHP code to your theme’s functions.php. Save the changes. Create a blog post containing multiple <h2> headings. The Table of Contents will be added automatically before the post content.
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 […]