1 minute read

Recent posts


  • number_posts – set number of visible posts, exemplary values: “2”, “3”, “4” etc..
  • thumbnail – show excerpt, exemplary values: “yes” or “no”.
  • headline – show headline, exemplary values: “yes” or “no”.
  • meta – show meta, exemplary values: “yes” or “no”.
  • excerpt – show excerpt, exemplary values: “yes” or “no”.
  • excerpt_words – set the length of excerpt , exemplary value: “30”.
  • strip_html – strip html tags from excerpt field, exemplary values: “yes” or “no”.
  • category_name – show posts from choosen categories, exemplary values (category slug): “art”, “art,business”.
  • read_more – show “read more” text, exemplary values: “yes” or “no”.
  • translate_read_more – Translate “Read more” text, exemplary value: “Continue reading…”.

Exemplary usage:

[recent_posts number_posts="3" thumbnail="yes" headline="yes" meta="" excerpt="yes" excerpt_words="30" strip_html="yes" category_name="" read_more="yes" translate_read_more=""]

See also demo of recent posts. In full download package (Dummy data/shortcodes-pages/recent-posts.html) You can find the file with shortcodes we used to create demo page.

Did you know...

You can use “recent posts date exposed” element in drag and drop website builder (Visual Composer) and customize this element easily without coding skills. Parameters and design options are the same as in shortcode.