
內容簡介
我找不到一個簡單的外掛程式,能夠啟用一個短碼,可以在父頁面下發佈子頁面的列表。所以,我自己開發了一個。
用法:
範例1:按發佈日期倒序排序子頁面:
[listchildpages aclass=”” ifempty=”沒有子頁面” orderby=”publish_date” order=”desc” displayimage=”no”]<h3>這是我們的子頁面:</h3>[/listchildpages]
範例2:按標題升序排列子頁面,並將頁面的特色圖像左對齊:
[listchildpages aclass=”” ifempty=”沒有子頁面” orderby=”title” order=”asc” displayimage=”YES” align=”alignleft”]<h3>這是我們的子頁面:</h3>[/listchildpages]
這個短碼接受 WordPress 類參考中列出的所有排序和排序依據參數。WordPress class reference。(英文)
由 DK New Media 開發,可造訪 MarTech 以獲取此外掛程式和其它網站行銷工具,以幫助您增強網上存在感!
外掛標籤
開發者團隊
原文外掛簡介
I could not find an easy plugin that enabled me to use a shortcode that would enable me to publish a list of child pages under a parent page. So, I built one.
Usage:
Example 1: Order the child pages by publish date in descending order:
[listchildpages aclass=”” ifempty=”No child pages” orderby=”publish_date” order=”desc” displayimage=”no”]
Here are our child pages:
[/listchildpages]
Example 2: Order the child pages by title in ascending order with the page’s featured image aligned left:
[listchildpages aclass=”” ifempty=”No child pages” orderby=”title” order=”asc” displayimage=”YES” align=”alignleft”]
Here are our child pages:
[/listchildpages]
The shortcode accepts all of the Order and Orderby Parameters listed within the WordPress class reference.
Built by DK New Media, visit the MarTech to keep up on this plugin and other marketing tools to help you grow your online presence!
