[WordPress] 外掛分享: PJW Query Child Of

首頁外掛目錄 › PJW Query Child Of
40+
安裝啟用
尚無評分
5467 天前
最後更新
問題解決
WordPress 2.0+ v1.10 上架:2009-02-23

內容簡介

這個外掛允許你在 WordPress 模板中運行迴圈,並查詢當前頁面的子頁面。

這個外掛會將額外的引數加入到 query_posts() 支援的引數列表中。

查詢參數 child_of 用於在資料庫查詢時添加 WHERE 條件,限制返回具有與提供的引數相等 post_page 的頁面。

查詢參數 child_limit 用於限制返回的頁面數量。

查詢參數 child_offset 用於偏移限制,如果需要分頁的話。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.10) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「PJW Query Child Of」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon