Skip to content

Instantly share code, notes, and snippets.

@simplethemes
Created June 27, 2014 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simplethemes/a9332125c20f27ca4ec2 to your computer and use it in GitHub Desktop.
Save simplethemes/a9332125c20f27ca4ec2 to your computer and use it in GitHub Desktop.
Latest Shortcode Parameters
/*-----------------------------------------------------------------------------------*/
//
// Latest Posts
// Shortcode Parameters:
//
/*-----------------------------------------------------------------------------------*/
// excerpt="true|false" ------ display the excerpt or 'more' tag break
// length="50" ------ excerpt word length
// thumbs="true|false" ------ display featured thumbnail
// width="50" ------ featured thumbnail width
// cols="2" ------ split the results into X number of columns (4 max)
// height="50" ------ featured thumbnail height
// num="6" ------ number of entries to display
// cat="1,-2" ------ categories to include or exclude (-)
// morelink="Read More..." ------ more link text
// offset="0" ------ offset/skip X number of posts
// type="page|post" ------ query type
// parent="1" (page only) ------ page parent
// orderby="date|customfield" ------ custom ordering
// order="ASC|DESC" ------ sort order
/*-----------------------------------------------------------------------------------*/
// Example: [latest excerpt="true" thumbs="true" width="50" height="50" num="5" cat="8,10,11"]
/*-----------------------------------------------------------------------------------*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment