[WordPress] 外掛分享: DeMomentSomTres Display Posts Shortcode

首頁外掛目錄 › DeMomentSomTres Display Posts Shortcode
WordPress 外掛 DeMomentSomTres Display Posts Shortcode 的封面圖片
10+
安裝啟用
尚無評分
478 天前
最後更新
問題解決
WordPress 3.0+ v2.5 上架:2013-11-16

內容簡介

基於 Bill Erickson 的開發(http://www.billerickson.net/shortcode-to-display-posts/),我們增加了對多站點的支援,以便能夠讀取網絡中的任何其他博客。

DeMomentSomTres Display Posts Shortcode 旨在允許用戶輕鬆地顯示文章列表,而無需了解 PHP 或編輯模板文件,並且可擴展以從具有多個博客的網絡安裝中獲取最大利潤。

用法

在文章或頁面中添加簡碼,並使用參數基於標籤、分類、帖子類型以及許多其他可能性進行查詢(參見參數)。我還添加了一些額外的選項,以顯示除標題以外的其他內容:include_date、include_excerpt 和 image_size。

添加參數 blog_id 以更改網路實例編號。

請查看WordPress Codex以瞭解使用這些參數的信息。

參數 metaorderby 允許基於元字段或自定義字段值進行排序。參數 metaorderbynum 則是將值視為數字進行排序。

歷史和存在理由

我們的一位客戶需要實現多種語言的多站點網站,他使用了DeMomentSomTres Language Plugin。儘管他們可以有許多博客,但他們不想讓 3 個博客保持同步。但是,他們希望在所有子站點中顯示博客。因此,我們構建了這個外掛,允許在多站點安裝中顯示其他站點的內容。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.5) 或搜尋安裝

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

原文外掛簡介

Based on development by Bill Erickson (http://www.billerickson.net/shortcode-to-display-posts/). We have added support to multisite in order to be capable of reading any other blog in the network.
The DeMomentSomTres Display Posts Shortcode was written to allow users to easily display listings of posts without knowing PHP or editing template files and extendend to take the maximum profit from a network install with multiple blogs.
Usage
Add the shortcode in a post or page, and use the arguments to query based on tag, category, post type, and many other possibilities (see the Arguments). I’ve also added some extra options to display something more than just the title: include_date, include_excerpt, and image_size.
Add the parameter blog_id to change the network instance number.
See the WordPress Codex for information on using the arguments.
The parameter metaorderby allows to order based on a metafield or customfield value. The parameter metaorderbynum does the same but considering the values as numbers.
History & Raison d’être
A customer of us needed a multisite website to implement multiple languages and she was using DeMomentSomTres Language Plugin. Although they could have many blogs they didn’t want to keep 3 blogs informed. However they wanted to show the blog in all the subsites. So we build this plugin allowing to show blog content from other sites in the multisite installation.

延伸相關外掛

文章
Filter
Mastodon