[WordPress] 外掛分享: VI: Include Post By

前言介紹

  • 這款 WordPress 外掛「VI: Include Post By」是 2020-04-06 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2020-07-27,距離現在已有 1742 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.2.4 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

knighthawk |

外掛標籤

post | vars | params | options | shortcode |

內容簡介

VI:Include Post By - 提供您的頁面和文章短碼,讓您可以通過它們的 ID 或文章類別在其中顯示其他頁面和文章。選項包括顯示標題、元數據、內容、縮略圖、摘要和頁尾。

即將推出的功能

更多顯示選項。
分類和文章類型不可知。
可設置默認縮略圖。
抓取實際的小型縮略圖像以供srcset使用。

說明

通過 ID 包含單個文章的短碼

[include-post-by-id
id="123"
link="true"
moretext="閱讀更多"
card="false"
display="title,meta,thumbnail,content,excerpt,more,footer,all"
display_header="title,meta,thumbnail,content,excerpt,more,footer,all"
display_body="title,meta,thumbnail,content,excerpt,more,footer,all"
display_footer="title,meta,thumbnail,content,excerpt,more,footer,all"
image_size="thumbnail,medium,large,full,custom-image-size"
class_inner="custom-class-name"
class_header="custom-class-name"
class_body="custom-class-name"
class_footer="custom-class-name"
class_thumbnail="custom-class-name"
]

id = 要顯示的文章
link = 標題/縮略圖是否連接到文章
moretext = 編輯閱讀更多鏈接的文本
card = 將類名設置為引導卡,無需進一步自定義類名
display[x] = CSV 格式的顯示選項,順序很重要
class[x] = 將添加到每個容器元素的自定義類名

通過其類別包含單個/多個文章的短碼。
包含在 include-post-by-id 中使用的每個選項都將被傳遞到此處。
此功能將查詢 DB,然後為每篇結果文章調用 include-post-by-id。
這裡顯示的僅是此功能特有的選項。

[include-post-by-cat
cat="123"
order="DESC"
orderby="date"
paginate=true
perpage="5"
offset="0"
class_container="custom-class-name"
]

cat = 要顯示的類別
order = 排序順序
orderby = 排序方式
paginate = true/false
perpage = 每頁的項目數。-1 = 所有
offset = 要跳過的文章數,如果您正在組合多個包含,這很有用
class_container = 包裝元素中使用的自定義類名

原文外掛簡介

VI: Include Post By – provides your pages and posts with shortcodes allowing you to display other pages and posts inside them either by their ID or by post category. Options to display title,meta,content,thumbnail,excerpt,footer.
Coming Soon
More display options.
Taxonomy and post type agnostic
setable default thumbnail
grab the actual small thumbnail image for srcset
Instructions
Shortcode for including a single post by its ID
[include-post-by-id
id="123"
link="true"
moretext="Continue Reading"
card="false"
display="title,meta,thumbnail,content,excerpt,more,footer,all"
display_header="title,meta,thumbnail,content,excerpt,more,footer,all"
display_body="title,meta,thumbnail,content,excerpt,more,footer,all"
display_footer="title,meta,thumbnail,content,excerpt,more,footer,all"
image_size="thumbnail,medium,large,full,custom-image-size"
class_inner="custom-class-name"
class_header="custom-class-name"
class_body="custom-class-name"
class_footer="custom-class-name"
class_thumbnail="custom-class-name"
]

id = post to be shown
link = whether the title/thubmnail are links to the post
moretext = edit the text of the read-more link
card = will set class names to bootstrap cards, no further class customization is required
display[x] = display options as a CSV, order counts
class[x] = a custom class name that will be added to each container element

Shortcode for including single/multiple posts by their category.
Every option required or used in the include-post-by-id will also pass through here.
This function will query the DB and then call include-post-by-id once for each resulting post.
Shown here are only the options which are unique to this function.
[include-post-by-cat
cat="123"
order="DESC"
orderby="date"
paginate=true
perpage="5"
offset="0"
class_container="custom-class-name"
]

cat = category to be shown
order = sort order
orderby = what to sort by
paginate = true/false
perpage = items per page. -1 = all
offset = how many posts to skip, useful if you are combining multiple includes
class_container = custom-class-name used in the wrapper element

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「VI: Include Post By」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

  • GET Params 》GET params 是一個外掛,它可以為您的頁面和文章提供簡碼,讓您可以在頁面和文章中顯示來自當前 URL 的 GET 參數,或根據 GET 參數值顯示/隱藏內容。, 例如,...。
  • Display URL Params 》URL 參數是添加到 URL 末端的標籤,通常用於追蹤目的或動態內容插入。, 最常見的 URL 參數類型是 UTM 參數,由 Google 和 Facebook 廣告鏈接使用,以了解您的...。

文章
Filter
Apply Filters
Mastodon