[ubb-stats]

Given a taxonomy (i.e. "book-source"), this shortcode will display a table of all entries in that taxonomy along with the number of posts (books) associated with it.

So, for example, if you enter "book-source" then it will show you how many posts are assigned to each source.

Attributes

  • for - (required) - Name of a taxonomy. Accepted options are: book-author, book-series, book-publisher, book-genre, book-source, book-format, ratings.
  • year - (optional) - Enter a year (i.e. "2016") to limit the results to posts published in a given year. Omit this option to not impose a year restriction and instead count every single post.

Example

[ubb-stats for="book-genre" year="2016"]

Still need help? Contact Us Contact Us