Version 0.5.7 of the Shortcode WordPress plugin adds a new shortcode,
totalwords, that counts the total number of words in published posts. Note that the count is only an approximation: the total is calculated in SQL as the sum of
LENGTH(post_content) - LENGTH(REPLACE(post_content, ' ', '')) + 1, i.e. the sum of the length of all posts (including spaces) minus the length of all posts without any spaces (plus one). Words may not be counted properly if they are separated by more than one space, but the result should be sufficient in accuracy nonetheless.
As always, www.maxpagels.com/shortcodes.txt lists all of the shortcodes offered by the plugin, sorted by version.
A new version (0.5.6) of the Shortcode WordPress plugin has been released, allowing you to get the total number of images attached in all posts & pages with the code
As always, look at the text file located at www.maxpagels.com/shortcodes.txt for all available shortcodes.
Added two new shortcodes:
futpostcount shows the number of posts set to publish in the future, and
draftpostcount the number of drafts. Refer to the list for all available codes.
Adds two new shortcodes (both averages):
charsperpostavg – the average number of characters per post
postsperdayavg – the average number of published posts per day
As always, refer to http://maxpagels.com/shortcodes.txt for the full list of available codes.
I’m happy to announce the release of a new WordPress plugin of mine called Shortcode.
Since WordPress 2.5, users have been able to insert special macro codes called shortcodes into their blog posts and pages. Shortcode is a plugin that adds useful, preconfigured shortcodes to your WordPress install, ready to use on any post or page you want. Version 0.1 of this plugin has a total of four codes useful for showing off your blog statistics. I plan on updating Shortcode frequently with more (and more diverse) codes.
You can grab the latest version of Shortcode from the WordPress Plugin Directory. I’ve also set up a page for the project.