前言介紹
- 這款 WordPress 外掛「Custom Post Type Lister – CPT Lister」是 2016-01-13 上架。
- 目前有 20 個安裝啟用數。
- 上一次更新是 2020-05-22,距離現在已有 1808 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0.1 以上版本才可以安裝。
- 有 2 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
listing | shortcode | open source | custom post types | Open Contribution |
內容簡介
你好!
此外掛將讓你有可能在任何文章或頁面中列出你的任何自訂文章類型 (甚至是內置的文章類型),只需一個簡單的短碼 [cpt_show]。
它能做些什麼?
此外掛製作一個 WP_Query ,並獲取您所給予的自訂文章類型的所有文章。
這些參數是什麼?
type - 在此你必須告訴外掛您想要從哪個文章類型中獲取您的文章。
範例:type=”posts”
post_status - 這是應列出的文章類型。
範例:post_status=”published”
order - 這是結果應如何以升序/降序排序。
範例:order=”ASC”
order_by - 這告訴外掛結果應根據什麼進行排序。
範例:order_by=”publish_date”
posts_per_page - 通過此項目,您告訴外掛每頁應列出多少文章。
範例:posts_per_page=”5″
titles_as_links - 這告訴短碼,列出的文章標題是否應該是指向每個唯一文章的特定頁面的連結。可能的值為 0 和 1。如果該值設置為 0,它將在未使用 HTML 鏈接標記 ( ) 包裝標題,如果該值設置為 1,它會在 HTML 鏈接標記中包裝文章標題,並將其指向特定的文章頁面。
範例:titles_as_links=”1″
show_post_content - 這告訴短碼它是否應在文章標題下顯示文章內容。可能的值為 0 和 1。如果該值為 0,它將不顯示文章內容,但如果值設置為 1,它也會列出文章內容。
範例:show_post_content=”0″
cptl_title_link_class - 這用於告訴短碼文章標題的連結包裝器應添加什麼類。默認為 cptl_title_link。
cptl_title_class - 這告訴短碼文章標題的標題包裝器應添加什麼類。默認為 cptl_title。
cptl_content_class - 這用於告訴短碼文章內容的內容包裝器應添加什麼類。默認為 cptl_content
cptl_content_wrapper - 這用於告訴短碼如何包裝列出的結果。它可以是 ‘h1’, ‘h2’, ‘h3’, ‘h4’, ‘h4’, ‘h6’, ‘li’, ‘span’, ‘div’
為什麼要使用此外掛?
快速在某些頁面或文章中列出自訂文章類型的需求?
嗯,這就是你的原因,這就是你的外掛。
注意:
您可以使用標準的 WordPress 選項來進行這些參數設置:
type、post_status、order、order_by、posts_per_page
找不到你需要的功能?
自訂文章類型清單是開源的外掛,這意味著您可以對其做出貢獻。
是的,沒錯!如果您找不到所需的功能,只需添加即可。
這是存儲庫。
乾杯!
原文外掛簡介
Hello there!
This plugin will give you the possibility to list any of your custom post types (even a built in post types) to any of your posts or pages, with one simple shortcode [cpt_show]
What it does ?
This plugin makes a WP_Query and gets all posts from the custom post type that you’ve given to it.
What are the parameters ?
type – Here you have to tell the plugin from which post type you would like to get your posts.
Example: type=”posts”
post_status – This is the type of posts that should be listed.
Example: post_status=”published”
order – This is how the results should be ordered ASC / DESC.
Example: order=”ASC”
order_by – This tells the plugin by what the results should be ordered.
Example: order_by=”publish_date”
posts_per_page – With this you tell the plugin how much posts should be listed on the page.
Example: posts_per_page=”5″
titles_as_links – This tells the shortcode if the titles of the listed posts should be links that are pointing to the specific page for every unique post. Possible values are 0 & 1. If the value is set to 0 it will print the title without wrapping it in HTML Link tag (), but if the value is set to 1 it will wrap the post title into HTML Link tag and it will point to the specific post page.
Example: titles_as_links=”1″
show_post_content – This tells the shortcode if it should show the post content under their titles. Possible values are 0 & 1. If the value is 0 it won’t show the post content under its title, but if the value is set to 1 it will list the post content also.
Example: show_post_content=”0″
cptl_title_link_class – This is used to tell the shortcode what class should be added to the Link Wrapper of the post title. By default it is cptl_title_link.
cptl_title_class – This tells the shortcode what class should be added to the Title Wrapper of the post title. By default it is cptl_title.
cptl_content_class – This is used to tell the shortcode what class should be added to the Content Wrapper of the post content. By default it is cptl_content
cptl_content_wrapper – This is used to tell the shortcode how wrap the listed results. It can be ‘h1’, ‘h2’, ‘h3’, ‘h4’, ‘h4’, ‘h6’, ‘li’, ‘span’, ‘div’
Why to use the plugin ?
The need of quick listing of custom post type on some page or post ?
Well this is your reason and this is your plugin.
Note :
You can use the standart WordPress options for those parameters:
type, post_status, order, order_by, posts_per_page
You don’t find your functionality ?
Custom Post Type Lister is Open Source plugin, which means that you can contribute to it.
Yup that’s right! If you don’t find the needed functionality just add it.
Here is the repository.
Cheers!
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Custom Post Type Lister – CPT Lister」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
BigBlueButton 》BigBlueButton 是一個開源的網路視訊會議系統。這款 WordPress 外掛將 BigBlueButton 整合進 WordPress,讓部落客可以建立和管理會議室並與讀者互動。它是由B...。
BBB Administration Panel 》BigBlueButton 是一個開源的網路視訊會議系統。此外掛將 BigBlueButton 整合至 WordPress 中,讓部落客可以建立和管理會議室,達到與讀者互動的目的。, , 此...。
CommonsBooking 》這個外掛程式可以讓組織、團體和個人與使用者分享物品(例如貨車及工具)。它基於共享資源的理念,為社區帶來好處。, CommonsBooking是為「Commons Cargobike...。
Instant Breaking News 》即時突發新聞或IBN, 將使您能夠釘住帖子並將其作為網站標題的“突發新聞”功能特色。, 有關完整說明,請查看插件GitHub存儲庫這裡。, 它是如何工作的?, , 啟用...。
Infinite Scroll Random Post 》ISRP (Infinite Scroll Random Post) 是一個 WordPress 外掛,, 該外掛可以實現文章頁面的 AJAX 連接(無限滾動)。, 當用戶滑動到文章底部時,下一篇文章就...。
LTI SEO 》LTI SEO 致力於保持盡可能的輕便,只會將元數據信息添加到您頁面的 HTML header 中(數據不會顯示在頁面上),只有像搜索引擎蜘蛛等專門的程序才能解析和使用...。
Easy CC License 》Easy CC License 創建了一個 WordPress 短代碼,可以為您的文章添加Creative Commons許可證信息。您只需要在任何文章中使用短代碼[ezcc],插件便會處理其餘部...。
List Media 》這個外掛允許您在自訂的頁面/文章上列出所有或部分媒體。, 只需使用一個簡單的短碼 - [list_media], 它可以使用七個屬性:, , order - 告訴外掛如何排序結果...。
Fancy User List 》你好!, 這個外掛可以讓你在文章或頁面上列出任何已註冊的使用者清單,只需使用一個簡單的短代碼,在清單設定頁面上設置即可生成。, 你可以在 WP.Org 下載並...。
Polr WordPress Plugin 》Polr is a quick, modern, and open-source link shortener. This plugin allows you to use Polr service in WordPress., Polr software is a good way to s...。
Labur WordPress Plugin 》 labur 是一個快速、現代且開源的短網址生成器,專為巴斯克族群設計。這個外掛程式可以讓你在 WordPress 中使用 labur 服務。, labur 軟體是縮短長網址的好方...。
StackAd 》想在您的博客上展示開放源碼項目的廣告嗎?StackAd 讓這變得容易。Stack Exchange 網絡由包含像這樣的問題的網站組成,允許用戶提交社區廣告,這些廣告將顯示...。
GetDeals 》曾經想過要建立自己的電商搜尋引擎和價格比較網站嗎?, GetDeals API 是印度 #1 的公開完全免費使用的即時產品發現和價格比較 API。, 使用 GetDeals API,您...。