Skip to content

Instantly share code, notes, and snippets.

@thejamescollins
Created October 5, 2011 08:44
Show Gist options
  • Select an option

  • Save thejamescollins/1263950 to your computer and use it in GitHub Desktop.

Select an option

Save thejamescollins/1263950 to your computer and use it in GitHub Desktop.
Mini Loops Example: 2 recent posts displayed on home page
[miniloop number_posts=2]
<li>
<h2>{title}</h2>
{image from=thumb width=75 height=75 class=alignleft}{ml_excerpt wlength=35 up_to_more=1 after=More... space_between=1}</li>
[/miniloop]
@thejamescollins

Copy link
Copy Markdown
Author

Thanks Kailey. Placing the miniloops shortcodes in a post snippet (using the Post Snippets plugin) helps keep the visual editor nice and tidy too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment