Created
October 5, 2011 08:44
-
-
Save thejamescollins/1263950 to your computer and use it in GitHub Desktop.
Mini Loops Example: 2 recent posts displayed on home page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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] |
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
If you find that the markup is unpredictable when using the [miniloop] shortcode, check out the
ml_format
that was introduced in v0.9.