前言介紹
- 這款 WordPress 外掛「Display Posts – Easy lists, grids, navigation, and more」是 2011-07-12 上架。
- 目前有 90000 個安裝啟用數。
- 上一次更新是 2024-10-14,距離現在已有 201 天。
- 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
- 有 162 人給過評分。
- 論壇上目前有 2 個提問,問題解答率 50%
外掛協作開發者
外掛標籤
page | pages | posts | query | shortcode |
內容簡介
Display Posts 讓您輕鬆地列出網站上的所有內容。首先在內容編輯器中新增此短碼,以列出最近的文章清單:
[display-posts]
按類別篩選
若只想顯示特定類別的文章,使用 category 參數:
[display-posts category="news"]
以文章格狀顯示
透過少量的樣式設定,您可以創建一個漂亮、基於欄位的文章格狀。 看看這裡!
列出熱門文章
您可以採用多種方式強調熱門內容。如果想要展示留言最多的文章,使用:
[display-posts orderby="comment_count"]
您也可以列出社交分享最多的熱門文章。
包含縮略圖、摘要等
顯示參數可讓您控制每篇文章顯示的相關訊息。若想顯示圖像和摘要,使用:
[display-posts include_excerpt="true" image_size="thumbnail"]
您可以使用 WordPress 新增的任何圖片大小(縮略圖、medium、medium_large、large),或任何主題或其他外掛新增的自訂圖片大小。
隨意排序
預設情況下,文章清單會按時間順序列出,但您可以根據標題、自訂菜單順序、相關性、內容類型、元數據等進行排序。
列出即將到來的活動
您可以輕鬆地列出任何行事曆計畫中即將到來的活動。每款外掛都需要略微不同的程式碼。
這裡有常用活動日曆外掛程式碼教學。如果您使用的外掛未在此列出,提交支援請求,我會把它加進去!
教學
我們的教學包含常見的自訂要求,而且經常更新。
完整文檔
查詢參數用於自訂要列出的文章(按類別、標籤、日期過濾...)
顯示參數用於決定文章的顯示方式(標題、摘要、圖片...)
模板部件用於完全配合您的主題文章列表
輸出篩選器可完全控制文章清單在您的網站上的外觀
篩選器可讓開發人員進行更強大的自訂
擴展功能
顯示文章-翻頁——允許將顯示文章的結果分頁
顯示文章-日期檢視——讓您按月或年將內容分類
顯示文章-字母順序——以字母的順序列出您的內容
原文外掛簡介
Display Posts allows you easily list content from all across your website. Start by adding this shortcode in the content editor to display a list of your most recent posts:
[display-posts]
Filter by Category
To only show posts within a certain category, use the category parameter:
[display-posts category="news"]
Display as Post Grid
You can create a great looking, column-based grid of posts with a bit of styling. Here’s how!
List Popular Posts
You can highlight your popular content in multiple ways. If you want to feature the posts with the most comments, use:
[display-posts orderby="comment_count"]
You can also list most popular posts by social shares.
Include thumbnails, excerpts, and more
The display parameters let you control what information is displayed for each post. To include an image and summary, use:
[display-posts include_excerpt="true" image_size="thumbnail"]
You can use any image size added by WordPress (thumbnail, medium, medium_large, large) OR any custom image size added by your theme or other plugins.
Sort the list however you like
By default the listing will list the newest content first, but you can order by title, menu order, relevance, content type, metadata, and more.
List upcoming events
You can easily list upcoming events from any event calendar. Each plugin will require slightly different code.
Here are tutorials for popular event calendar plugins. If your plugin is not listed here, submit a support request and I’ll add it!
Tutorials
Our tutorials cover common customization requests, and are updated often.
Full Documentation
Query parameters for customizing which posts are listed (filter by category, tag, date…)
Display parameters determine how the posts appear (title, excerpt, image…)
Template parts for Display Posts to perfectly match your theme’s post listings
Output filter for complete control over how the listing looks on your site
Filters for even more powerful customizations for developers
Extensions
Display Posts – Pagination – Allow results of Display Posts to be paginated
Display Posts – Date View – Lets you break your content down by month or year.
Display Posts – Alpha View – Display an alphabetical listing of your content, broken down by letter
Display Posts – Transient Cache – Cache the output using transients
Co-Authors Plus Addon – multiple authors on posts
Columns Extension – display posts in columns
DPS Exclude Sticky – exclude sticky posts unless specifically requested
DPS Pinch Zoomer – adds support pinch zooming post images on mobile devices and mouse wheel zooming on desktops
Display Posts Shortcode Remote – display posts from a remote WordPress site utilizing the WP REST API.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Display Posts – Easy lists, grids, navigation, and more」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.7 | 1.8 | 1.9 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.5.1 | 2.6.0 | 2.6.1 | 2.6.2 | 2.7.0 | 2.8.0 | 2.9.0 | 3.0.0 | 3.0.1 | 3.0.2 | 3.0.3 | trunk |
延伸相關外掛(你可能也想知道)
WP Shortcodes Plugin — Shortcodes Ultimate 》Shortcodes Ultimate 是一個全面的視覺與功能性元素收集,您可以在文章編輯器、文字小工具甚至是範本檔案中使用。使用 Shortcodes Ultimate,您可以輕鬆地建...。
MW WP Form 》MW WP Form 可以使用 shortcode 創建帶有確認畫面的郵件表單。, , 使用 shortcode 創建表單, 可以使用確認頁面。, 頁面可以使用相同的 URL 或個別的 URL 進行...。
Shortcoder — Create Shortcodes for Anything 》Shortcoder 外掛可讓您建立 HTML、JavaScript、CSS 和其他代碼片段的自訂捷徑。現在,這些捷徑可以在文章/頁面中使用,並且該片段將取代其位置。, ✍ 輕鬆建立...。
Widget Shortcode 》這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:, [widget id=”text-1″...。
Woody code snippets – Insert Header Footer Code, AdSense Ads 》需要專業的支援嗎?, 免費獲取支援, 開始獲得高級支援, , 停止反覆使用相同的內容!, 停止插入 function.php 中的 PHP 代碼!, 停止將 Google Analytics、Yan...。
Column Shortcodes 》此外掛提供簡單易用的短碼,在您的文章或頁面中輕鬆創建欄位。有時候,您只需要將網頁切成不同的欄位。使用此外掛,您只需選擇一個欄位的短碼,便可將欄位加...。
amr shortcode any widget 》使用shortcode將小工具或多個小工具或整個小工具區域(側邊欄)插入到頁面中。, 首先在正常的側邊欄中設置小工具。 檢查它是否正常運作。, 然後將所選小工具...。
Shortcode in Menus 》此外掛讓你可以在 WordPress 導覽選單中使用簡碼,以便可以動態生成連結。也可以讓你在導覽選單中添加完整的 HTML 段落。, 使用方法, 查看截圖。, 另外,查看...。
Sidebar Widgets by CodeLights 》❗ 很抱歉,由於 SiteOrigin 的 widgets API 完全更改,CodeLights 不再支援 SiteOrigin Page Builder 的原生使用。解決方案:您仍然可以在純文字編輯器中創...。
Advanced iFrame 》看起來您正在尋找一個 WordPress 外掛 - Advanced iFrame Pro。這個外掛可讓您使用 iframe 包含其他網頁到您的網站中,同時具有隱藏和修改元素、自動調整高度...。
Insert Pages 》Insert Pages 可讓您使用 Shortcode API,將任何 WordPress 內容(例如,頁面、文章、自訂文章類型)嵌入其他 WordPress 內容。它還包括一個小工具,可將頁面...。
Shortcodes by Angie Makes 》Shortcodes by Angie Makes 外掛為您的 WordPress 主題新增一系列易於使用的短碼,這些短碼與 Angie Makes WordPress 主題 完美搭配。, 範例, 請到此查看這些...。
Team Members 》這個外掛會為管理員面板增加一個「團隊」區塊,讓您可以輕鬆地在網站上展示您的員工/職員。您可以快速地將成員加入您的團隊,加入他們的照片、職位、個人簡介...。
Post Snippets – Custom WordPress Code Snippets Customizer 》, 建立自訂短碼和可重複使用的內容,並將它們插入到您的文章和頁面中。, , 此外掛讓您建立 HTML、PHP 程式碼或常用文字片段的庫。在文章和頁面中,您可以使用...。
Donations via PayPal 》此外掛會在 WordPress 中新增 PayPal 捐款的短代碼和側邊欄小工具。使用選項選單可以設定 PayPal ID 和一些其他可選設定。你可以選擇要使用哪個捐款按鈕,或...。