[WordPress] 外掛分享: Wp Loop

首頁外掛目錄 › Wp Loop
WordPress 外掛 Wp Loop 的封面圖片
40+
安裝啟用
★★★★★
5/5 分(2 則評價)
3568 天前
最後更新
問題解決
WordPress 4.3+ v1.2.2 上架:2015-10-20

內容簡介

這個外掛會在你的 WordPress 網站上新增一個小工具,稱為「Wp Loop」,可以在需要的地方發佈此小工具並設定其選項,它會建立一個 WordPress 查詢循環,具有網格佈局(Isotope),可以使用 ajax(Isotope 篩選)進行篩選,可以顯示任何 CPT 並具有一堆設計選項和循環自定義:

-標題:小工具標題
-顯示類別,使用逗號分隔的別名:要在循環中包含的類別,可以是自訂的文章類別
-隱藏類別,使用逗號分隔的 ID:要隱藏的類別,這裡需要使用 ID
-過濾分類法,如果需要過濾循環(ajax 過濾),在這裡寫下需要過濾的節點
-偏移量,數字:寫下循環中偏移的數字,這意味著需要從開始處跳過的文章數
-要顯示的文章數:每頁文章數
-要使用的圖片大小:這將列出主題中所有可用的圖片大小,因此選擇你喜歡的大小
-要使用的文章類型:此欄位會列出主題中所有可用的文章類型供你選擇
-順序:循環順序
-依照順序排序:依照順序排序
-要使用的列數:你可以設定多達 20 欄
-標題字數,數字:標題所要顯示的字數
-摘要字數,數字:摘要所要顯示的字數
-無限捲動:選擇「否」、「按鈕」或「自動」(當你向下滾動頁面時,無限捲動會觸發)

使用說明

只需在需要的地方發佈小工具即可。它可以與 Site Origin Panels 外掛一起使用,建立全面的版面配置。

開發者說明

除了小工具內的選項外,你可以使用以下操作來操作循環之前/之後和文章內容:

do_action('wploop_before_content'); // 每篇文章內容的開始
do_action('wploop_after_content'); // 每篇文章內容的結束
do_action('wploop_before_loop'); // 循環外
do_action('wploop_after_loop'); // 循環外

在 http://mimo.studio 找到外掛和問題求解。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Wp Loop」→ 直接安裝(推薦)

原文外掛簡介

This plugin adds a widget to your WordPress site called Wp Loop, publish this widget wherever needed and set its options, it creates a WordPress Query Loop that has Grid Layout(Isotope) and can be filtered with ajax(Isotope Filtering), it can display any CPT and has a bunch of design options and loop customizations:

-Title: Title of the widget
-Categories to show, use slugs separated by commas: Which categories to include in the loop, they can be custom post types categories
-Categories to hide, use ids separated by commas: The categories to hide, here you need to use id’s
-Filter taxonomyIf you need to filter the loop(ajax filter), write here wchich term you need to filter.
-Offset, number: Write the number for offset in the loop, this means the number of post you need to jump from beginning.
-Number of posts to show: Posts per page
-Image Size to use: This will list all available image sizes in theme, so choose which you prefer
-Post Type to use: This field will list all available post types in theme for you to choose one
-Order: Order of loop
-Order by: Order by
-Columns to use: You can set here until 20 columns
-Title Words, number: How many words to show in title of posts
-Excerpt Words, number: How many words to show in excerpt of posts
-Infinite Scroll: Choose to No, Button or Auto(the infinite scroll triggers when you scroll down the page)

Usage instructions
Just publish the widget wherever needed. It works great with Site Origin Panels plugin to create full layouts.
Developer instructions
Apart from the options inside widget you can manipulate the before/after loop and articles content with this actions:
do_action(‘wploop_before_content’); // The beginnning of content inside each article
do_action(‘wploop_after_content’); // The end of content inside each article
do_action(‘wploop_before_loop’); // Out of the loop
do_action(‘wploop_after_loop’); // Out of the loop
Find plugin and issues solved at http://mimo.studio

文章
Filter
Apply Filters
Mastodon