WordPress Short Code Tips and Tricks
A lot of blogs love to show off how many posts have been authored under their name, or how many comments, or some other statistic.
This WP Code Snippets shortcode function allows an author to call a range of interesting statistics by adding the shortcode into their post or page. Plus, it can be used in conjunction with the previous shortcode that hides content to all but admins, to show information like number of pending comments or those in the spam queue.
Yep, that’s a long one! However, it’s necessary to offer you the range of valuable information now available with a few lines of text, as shown below. The full list of types is avilable on the original blog post, and one is needed to be dropped into the “type” attribute. In the cases of statistics that reference a specific user, the “extra” attribute is needed and fufiled with the specific ID.