
內容簡介
Custom Posts Order 外掛可以藉由簡單的拖曳排序功能為文章排序。在頁面、文章、文字小工具或範本檔案中放置捷徑以顯示在前端,使用起來非常簡單。
快速且容易地透過拖曳重新排列文章。
設定在前端顯示的文章數量。
使用者可以添加不同的單獨文章區塊清單。
用法
在您想要顯示文章的頁面、文章或文字小工具中,放置這個捷徑。
[posts_order posts=2 section=porder_name]
參數
Custom Posts Order 外掛支援「posts」參數,您可以將您想要在前端顯示的文章數量傳遞過去,還有「section」參數,您可以將希望在前端顯示的區塊名稱傳遞過去。例如,如果您希望同時顯示 3 篇來自 Section1 的文章,請放置下列程式碼:
[posts_order posts=3 section=Section1]
如果沒有設定,預設會顯示 5 篇文章。
範本
在您的佈景主題中的任何模板部分放置這個捷徑。
<?php echo do_shortcode('[posts_order posts=3 section="Section1"]'); ?>
外掛標籤
開發者團隊
原文外掛簡介
Custom Posts Order plugin will order posts with simple Drag and Drop Sortable capability. Place a shortcode in page, post, text widget or template files to display in front-end. It’s that simple.
Quick and easy drag and drop for rearranging of posts.
Set the number of posts to display in front-end.
User can add different list of sections of particular posts.
Usage
Place this shortcode in page, post or text widget where you’d like to display posts.
[posts_order posts=2 section=porder_name]
Parameters
Custom Posts Order plugin supports the “posts” parameter where you can pass the number of posts you want to display in frontend and “section” parameter where you can pass the name of the section to be displayed in frontend. For example if you want to display 3 posts from Section1 at a time then place the following code:
[posts_order posts=3 section=Section1]
By default it displays 5 posts.
Templates
Place this shortcode in any template parts of your theme.
