Directory / plugin

L7 Display Posts

v0.1.1 · by Jeff

Efficiently show posts by tag or category using a simple shortcode. Utilizes caching for greater speed and fewer database calls.

About this plugin

Use a shortcode to display your posts. Display them by tag, number of posts, order (asc, desc), orderby (date, time created, none, ID, author, title, parent, rand), pagination (pages), and display the results in one column or two.

Intended to be used with object caching (memcache) for maximum efficiency.

[Display Posts tag=’a tag’ pages=’true’ posts=’7′ order=’desc’ orderby=’date’]

cat

  • Category name. Add multiple categories separated by commas. (Note: Using cat and tag will increase query load dramatically)

tag

  • Tag name. Add mulitiple tags separated by commas.

pages

  • True or false. Display the posts with pagination or all on one page.

posts

  • Number of posts to display. If pages is true it is the number of posts per page.

order

  • Display the posts in descending or ascending order.

orderby (There are many options including)

  • date
  • time created
  • none
  • ID
  • author
  • title
  • parent
  • rand

Requires PHP version 5.3.0 or greater.

Plugin tags