內容簡介
這個外掛允許你在 WordPress 模板中運行迴圈,並查詢當前頁面的子頁面。
這個外掛會將額外的引數加入到 query_posts() 支援的引數列表中。
查詢參數 child_of 用於在資料庫查詢時添加 WHERE 條件,限制返回具有與提供的引數相等 post_page 的頁面。
查詢參數 child_limit 用於限制返回的頁面數量。
查詢參數 child_offset 用於偏移限制,如果需要分頁的話。
外掛標籤
開發者團隊
原文外掛簡介
This plugin allows you to run loops within your WordPress templates where you query for children of the current page.
The plugin extra arguments to the list of arguments supported by query_posts().
The query argument child_of is used to add a WHERE to the database query to limit the pages returned to those with a post_page equal to the argument provided.
The query argument child_limit is used to limit the number of pages returned.
The query argument child_offset is used to offset the limiting to allow for pagination if required.
