Lyza Loop is a WordPress plugin for theme developers and template-savvy folks that aims to:
- Dramatically shorten the time required to code custom loops
- Modularize custom loop markup using what I hope is a straightforward templating process
- Provide convenient batching variables
- Respect the context in which the custom loop is called and put everything back the way it was (e.g. global $wp_query and $post objects)
- Reduce tedious and duplicated code for custom loops
There are two parts to the
- Finding posts (or pages): extending
lyza_loop()takes any argument WordPress’ own query_posts() takes
- Rendering relevant posts or pages: using “loop templates.” A loop template is a PHP file with markup (and logic) you’d like to use for each post/page in the loop.
Read more on the plugin home page
Please note: This plugin requires PHP 5–it uses some of PHP’s better object-oriented programming support introduced in PHP 5. If there is great hue and cry, I might consider making it PHP 4 compatible.
- Unzip, then upload the
lyza-loopdirectory to the
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Update defaults on the Settings -> Lyza Loop screen, if desired.
- See Lyza Loop documentation to get started quickly!
Please see the Lyza Loop FAQ page!
Contributors & Developers
“Lyza Loop” is open source software. The following people have contributed to this plugin.
- Added configuration option for suppressing sticky posts.
- Added code to set
- Fixed a couple of typos in the constructor function.
- Fixed bug in which
post__not_inargument could get ignored if
exclude_repeatsis set to true (or the plugin is configured to exclude repeats by default).
- Updated to handle sticky tags appropriately (i.e. not return them at the top of every query).
- Initial release.