跳到内容

Lyza Loop

v0.3

lyzadanger · 2009年11月13日 上架

Quickly code custom loops with re-usable templates and useful variables. Easier custom loops for theme developers.

正在使用
10 以下
评分
暂无
累计下载
1,808
最近更新
2009年12月2日
需要 WordPress 2.8.4+已测试到 2.8.5

贡献者

截图

Lyza Loop Settings admin screen.
Lyza Loop Settings admin screen.
Example of theme using a combination of Lyza Loop loops and loop templates.
Example of theme using a combination of Lyza Loop loops and loop templates.

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 lyza_loop() function:

  1. Finding posts (or pages): extending query_posts() — lyza_loop() takes any argument WordPress’ own query_posts() takes
  2. 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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums