這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Cross-Network posts

外掛說明

Major overhaul

As of version 2.0 CNP allows you to easily embed posts from other websites in the same WordPress network with a shortcode builder that is available above your editor.

The manual way of entering the shortcode is still available, but you can chooses whichever you prefer.

Also included from version 2.0 is an options page where you set certain security measures: 1. You can restrict embedding of content to only the original author of the post (does not apply to administrators) 1. You can disallow other websites in the WordPress network to embed posts from your website

Usage

This plugin is useful if you have a wordpress network (multisite) and you want to display (embed) a post or a category of posts that is on another website in the same network.

Use the shortcode builder above the editor or type the shortcode in manually:

[cnp blogid=1 postid=1] 

Attributes

Mandatory

blogid is the ID of the blog you wish to pull the post from (go to Network->Sites and hover over the site to view the ID).

Instead of postid= you can also use catid= to display all posts from a category.

Optional

header=1 -> header number (i.e. h1 ), no title if you set it to 0 (default is 2)

excerpt=true -> if you only want to display excerpts with read more links to the post on the other website

numberofposts=5 -> for displaying a certain number of posts from a category (default is 5)

titlelink=false -> if you don’t want the title to have a permalink (default is true)

Working with other plugins

If you want to display a plugin through a shortcode that is in one of the posts that you are displaying, make sure that the plugin is also active on the network site where you use CNP.

Note: not all plugins will work. Post about it if you find some that do and also that don’t.

螢幕擷圖

安裝方式

  1. install (or download zip and upload) and activate the plugin on the Plugins page
  2. add shortcode [cnp blogid=1 postid=1] to page or post content manually or with the shortcode builder

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Cross-Network posts〉的開發相關工作。

參與者

將〈Cross-Network posts〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

2.0

  • added shortcode builder above WordPress editor
  • added options page
  • added (security) restrictions

1.01

  • Updated description on the plugin page in your WP network

1.0

  • Initial release