[WordPress] 外掛分享: Blog Crosspost

首頁外掛目錄 › Blog Crosspost
WordPress 外掛 Blog Crosspost 的封面圖片
50+
安裝啟用
★★★☆☆
3.7/5 分(3 則評價)
590 天前
最後更新
問題解決
WordPress 4.9+ PHP 5.6+ v0.2.2 上架:2020-05-06

內容簡介

利用簡碼 (shortcode) 自動從另一個 WordPress 網站新增文章。

用法

將簡碼 [blogcrosspost url="example.com"] 加到所需的文章/頁面/小工具上並保存,即可使程式碼運作。

選項

使用者可以在簡碼中加入一些自訂選項,像是:

連結到外部網站 = [blogcrosspost url="example.com"]
顯示文章數量 = [blogcrosspost number="3"]
自訂 Read More 連結文字 = [blogcrosspost readmoretext="了解更多"]

或是一口氣全部使用:

[blogcrosspost url="example.com" number="3" readmoretext="了解更多"]`

使用者可以透過 apply_filters( 'blogcrosspost_link', $html, $atts ); 更改 HTML 結構。

即將推出的功能

[ ] 加入 Gutenberg 區塊。

貢獻/問題/意見反饋

如有任何問題或意見,歡迎在 Github 上提交 PR 或 Issue:https://github.com/bahiirwa/blogcrosspost

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Blog Crosspost」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Automatically add posts from another WordPress website using a shortcode.
Usage
Add the shortcode [blogcrosspost url="example.com"] to desired post/page/widget and save to have the code working.
Options
One can add some customization to the shortcode such as”:

Link to external website = [blogcrosspost url="example.com"]
Number of Posts to show = [blogcrosspost number="3"]
Name for the Readme link = [blogcrosspost readmoretext="Learn More"]
Image Size to Display = [blogcrosspost image_size="medium"]. Options can be medium, large, thumbnail, full or any custom size. Default is full.

or use all of them in one go as:
`[blogcrosspost url="example.com" number="3" readmoretext="Learn More" image_size="medium"]```

You can also change the HTML structure using apply_filters( 'blogcrosspost_link', $html, $atts );
Upcoming features

[ ] Add a Gutenberg Block.

Contribute/Issues/Feedback
If you have any feedback, just write an issue. Or fork the code and submit a PR on Github.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon