Title: Network-wide posts
Author: Aurovrata Venet
Published: <strong>2016 年 3 月 28 日</strong>
Last modified: 2021 年 11 月 30 日

---

搜尋外掛

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

![](https://s.w.org/plugins/geopattern-icon/network-wide-posts.svg)

# Network-wide posts

 由 [Aurovrata Venet](https://profiles.wordpress.org/aurovrata/) 開發

[下載](https://downloads.wordpress.org/plugin/network-wide-posts.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/network-wide-posts/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/network-wide-posts/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/network-wide-posts/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/network-wide-posts/#developers)

 [技術支援](https://wordpress.org/support/plugin/network-wide-posts/)

## 外掛說明

This is a multisite plugin.

The plugin creates a network-wide tag in all post_tag taxonomy of each site.

Tagged posts are made available for a theme developer to display on the home site.

Furthermore, the home site admin dashboard has a new submenu Posts->Network Wide(
the name of your network-wide tag) which allows the admin to manually order the 
network-wide posts with a drag and drop interface.

This plugin was originally designed for a client site. The site is a multi-resort
group of hotels. Each hotel has special offers through the season. Each special 
offer is promoted on the home site. Special offers need to be pushed up to the top
of the page at various moments during the season. This plugin allows them to do 
so.

The plugin is compatible with the excellent [PolyLang](https://wordpress.org/plugins/polylang/)
multi-language plugin.

**Main Features of this plugin**

 * Allows multi-site child-blog posts authors to tag their articles as network-wide
 * These child-blog posts can be manually ordered in the main blog
 * It is fully compatible with the PolyLang multi-language plugin

## 螢幕擷圖

[⌊Shows the main blog Dashboard settings page for Network Wide posts.
If you change
the name of the network-wide,the new name will be used as the sub-menu in the Posts
dashboard menu.⌉⌊Shows the main blog Dashboard settings page for Network Wide posts.

If you change the name of the network-wide,the new name will be used as the sub-
menu in the Posts dashboard menu.⌉[

Shows the main blog Dashboard settings page for Network Wide posts. If you change
the name of the network-wide,the new name will be used as the sub-menu in the Posts
dashboard menu.

[⌊The sub-menu in the Posts dashboard section.
You can order the post as per the
default published date, the slug or opt for a manual order.⌉⌊The sub-menu in the
Posts dashboard section.
You can order the post as per the default published date,
the slug or opt for a manual order.⌉[

The sub-menu in the Posts dashboard section. You can order the post as per the default
published date, the slug or opt for a manual order.

[⌊If you use the PolyLang plugin to enable multi-language content,
the plugin allows
you to sort each set of language specific network-wide posts in tabs.⌉⌊If you use
the PolyLang plugin to enable multi-language content,
the plugin allows you to sort
each set of language specific network-wide posts in tabs.⌉[

If you use the PolyLang plugin to enable multi-language content, the plugin allows
you to sort each set of language specific network-wide posts in tabs.

## 安裝方式

 1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or 
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Navigate to your main blog admin Dashboard, and set your network-wide taxonomy 
    in the options page Settings->Network Wide Post.
 4. You can also set aliases for your child blogs to facilitate network-wide posts 
    manual ordering process.
 5. To order your posts, navigate to the Dashboard Posts->Network Wide submenu page.
 6. If you have multiple languages, each language posts will appear under a separate
    tab.

## 常見問題集

### How do I display the network-wide post in a page?

The functionality is exposed through a single function `get_network_wide_posts()`,

which returns an array of posts with a limited number of meta-fields, which are,

 * `post_id` the id of the post
 * `post_title` the title of the post
 * `post_excerpt` the excerpt of the post
 * `post_url` the permalink of the post
 * `thumb_url` the thumbnail image URL of the post
 * `blog_id` the id of the blog to which this post belongs to

Here is the example of how to use it in a page template

    ```
    $nwposts = array();
    if(function_exists('get_network_wide_posts')){
      $nwposts = get_network_wide_posts();
      foreach($nwposts as $post){
        ?>
    <article id="post-<?php echo $post['post_id']; ?>" >
      <a class="post-thumbnail" href="<?php echo $post['post_url'];?>" >
            <img src="<?php echo $post['thumb_url'];?>" class="attachment-post-thumbnail" alt="<?php echo $post['post_title'];?>">
      </a>
        <header class="entry-header">
            <h1><?php echo $post['post_title'];?></h1>
        </header><!-- .entry-header -->
        <div class="entry-content">
            <?php echo $post['post_excerpt'];?>
        </div><!-- .entry-content -->
      </article><!-- #post-## -->
    <?php
      }
    }
    ?>
    ```

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ Aurovrata Venet ](https://profiles.wordpress.org/aurovrata/)

[將〈Network-wide posts〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/network-wide-posts)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/network-wide-posts/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/network-wide-posts/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/network-wide-posts/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/network-wide-posts/)。

## 變更記錄

#### 1.1.1

 * bug fix in public class SQL query

#### 1.1

 * Fixed a bug which prevented the posts to be loaded when no feature image was 
   set

#### 1.0

 * Initial launch of the plugin with PolyLang compatibility

## 中繼資料

 *  版本 **1.1.1**
 *  最後更新 **5 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 3.5 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.8.13**
 *  語言
 * [English (US)](https://wordpress.org/plugins/network-wide-posts/)
 * 標籤:
 * [manual order](https://tw.wordpress.org/plugins/tags/manual-order/)[multisite](https://tw.wordpress.org/plugins/tags/multisite/)
   [network](https://tw.wordpress.org/plugins/tags/network/)[posts](https://tw.wordpress.org/plugins/tags/posts/)
 *  [進階檢視](https://tw.wordpress.org/plugins/network-wide-posts/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/network-wide-posts/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/network-wide-posts/reviews/)

## 參與者

 *   [ Aurovrata Venet ](https://profiles.wordpress.org/aurovrata/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/network-wide-posts/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.paypal.com/us/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PAENZZXUMUKSG)