
內容簡介
利用簡碼 (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
外掛標籤
開發者團隊
原文外掛簡介
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.
