內容簡介
這個外掛會為你的 WordPress 網站新增一個小工具,名為 Mimo Masonry,你可以在需要的地方發佈這個小工具並設定它的選項,它會創建一個 WordPress Query 迴圈,具有網格佈局(Isotope)和可使用 ajax 进行过滤(Isotope Filtering),它可以顯示任何自訂文章類型並具備一堆設計選項和迴圈自定制:
-標題:小工具標題
-要顯示的分類(使用 slug 用逗號隔開):要包含在迴圈中的分類,它們可以是自訂文章類型的分類
-要隱藏的分類(使用 id 用逗號隔開):要隱藏的分類,這裡需要使用 id
-過濾分類(如果需要用 ajax 過濾迴圈),寫在這裡想要過濾的關鍵字
-位移, 數字:在迴圈中,寫入位移數字,這意味著您需要從開始時跳過多少篇文章
-要顯示的文章數量:每頁文章數量
-要使用的圖片大小:這將列出主題中所有可用的圖片大小,所以選擇您喜歡的那個
-要使用的文章類型:這個欄位會列出可用的文章類型,供你選擇
-迴圈排序:迴圈排序
-文章排序依據:文章排序依據
-要使用的列數:這裡可以設定多達20列
-標題單字数量, 數字:標題中顯示的單字數量
-摘要單字数量, 數字:摘要中顯示的單字數量
-無限滾動:選擇「否」、「按鈕」或「自動」(當您向下滾動頁面時,會觸發無限滾動)
這個外掛完全兼容 SiteOrigin Page Builder 外掛。
使用說明
只需在需要的地方發佈小工具即可。它與 SiteOrigin Panels 外掛一起使用可創建完整佈局。
開發者說明
除了 widget 內的選項外,您還可以使用以下操作來處理迴圈之前/之後和文章內容:
do_action (‘mimo_masonry_before_content’); // 在每篇文章內容開始
do_action (‘mimo_masonry_after_content’); // 在每篇文章內容結尾
do_action (‘mimo_masonry_before_loop’); // 在迴圈之外
do_action (‘mimo_masonry_after_loop’); // 在迴圈之外
尋找插件並解決問題,可參考http://mimo.studio/
外掛標籤
開發者團隊
原文外掛簡介
This plugin adds a widget to your WordPress site called Mimo Masonry, 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 Custom Post Type 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)
This plugin is completely compatible with SiteOrigin Page Builder Plugin.
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(‘mimo_masonry_before_content’); // The beginnning of content inside each article
do_action(‘mimo_masonry_after_content’); // The end of content inside each article
do_action(‘mimo_masonry_before_loop’); // Out of the loop
do_action(‘mimo_masonry_after_loop’); // Out of the loop
Find plugin and issues solved at http://mimo.studio/
