Title: Lyza Loop
Author: lyzadanger
Published: <strong>2009年11月13日</strong>
Last modified: 2009年12月2日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/lyza-loop.svg)

# Lyza Loop

 由[lyzadanger](https://profiles.wordpress.org/lyzadanger/)

[下載](https://downloads.wordpress.org/plugin/lyza-loop.0.3.zip)

 * [詳情](https://zh-hk.wordpress.org/plugins/lyza-loop/#description)
 * [評價](https://zh-hk.wordpress.org/plugins/lyza-loop/#reviews)
 *  [安裝](https://zh-hk.wordpress.org/plugins/lyza-loop/#installation)
 * [開發](https://zh-hk.wordpress.org/plugins/lyza-loop/#developers)

 [支援](https://wordpress.org/support/plugin/lyza-loop/)

## 描述

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](http://www.lyza.com/lyza-loop)

## 螢幕截圖

[⌊Lyza Loop Settings admin screen.⌉⌊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.⌉[

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

## 安裝

_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._

 1. Unzip, then upload the `lyza-loop` directory to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Update defaults on the Settings -> Lyza Loop screen, if desired.
 4. See [Lyza Loop documentation](http://www.lyza.com/lyza-loop-documentation) to get
    started quickly!

## 常見問題

Please see the [Lyza Loop FAQ page](http://www.lyza.com/lyza-loop/lyza-loop-faq/)!

## 評價

There are no reviews for this plugin.

## 貢獻者及開發者

“Lyza Loop” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

 *   [ lyzadanger ](https://profiles.wordpress.org/lyzadanger/)

[將 Lyza Loop 外掛本地化為台灣繁體中文版。](https://translate.wordpress.org/projects/wp-plugins/lyza-loop)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/lyza-loop/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/lyza-loop/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/lyza-loop/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/lyza-loop/)。

## 修改日誌

#### 0.3

 * Added configuration option for suppressing sticky posts.
 * Added code to set `$wp_query->in_the_loop` to `true` during `lyza_loop()` processing.

#### 0.2

 * Fixed a couple of typos in the constructor function.
 * Fixed bug in which `post__not_in` argument could get ignored if `exclude_repeats`
   is 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).

#### 0.1

 * Initial release.

## 其它

 *  Version **0.3**
 *  Last updated **17 年之前**
 *  Active installations **少於10**
 *  WordPress version ** 2.8.4 or higher **
 *  Tested up to **2.8.5**
 *  Language
 * [English (US)](https://wordpress.org/plugins/lyza-loop/)
 * Tags
 * [cms](https://zh-hk.wordpress.org/plugins/tags/cms/)[developer](https://zh-hk.wordpress.org/plugins/tags/developer/)
   [loop](https://zh-hk.wordpress.org/plugins/tags/loop/)[template](https://zh-hk.wordpress.org/plugins/tags/template/)
   [theme](https://zh-hk.wordpress.org/plugins/tags/theme/)
 *  [進階顯示](https://zh-hk.wordpress.org/plugins/lyza-loop/advanced/)

## 評分

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/lyza-loop/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/lyza-loop/reviews/)

## 貢獻者

 *   [ lyzadanger ](https://profiles.wordpress.org/lyzadanger/)

## 支援

有話想說？需要協助？

 [檢視支援論壇](https://wordpress.org/support/plugin/lyza-loop/)