Syndication

外掛說明

Syndication helps users manage posts across multiple sites. It’s useful when managing posts on different platforms. With a single click you can push a post to more than 100 sites.

Features

  • Push syndication – Publish content to multiple WordPress sites simultaneously
  • Pull syndication – Import content from RSS/XML feeds automatically
  • Multiple transport methods – WordPress.com REST API, XML-RPC, and RSS/XML feeds
  • Site groups – Organise destination sites into groups for easier management
  • Scheduled syndication – Content syncs automatically when posts are published
  • WP-CLI support – Manage syndication from the command line

Usage

Here’s how it works:

  1. Configure which post types are “pushable”, as well as whether you’d like syndicated posts to be deleted when the master post is deleted.
  2. Register and group your sites into “Sitegroups” in settings.
  3. In the WordPress posting interface, you’ll see a new “Syndication” metabox, with all of your sitegroups listed. Select the sitegroups you want to push to and the post will be automatically syndicated to your other sites when it’s published and updated.

WordPress.com REST API

To push content using the WordPress.com REST API you need to create an application from the WordPress.com Developer Resources site – and you can also generate API tokens directly from the plugin’s settings page.

Fill in the client ID and client secret as displayed on the app page, and click the authorize button to get directed to the authorization page on WordPress.com. Select which site you’d like to push to and click “Authorize”, at which point you’ll be redirected back to your settings page-which will now display the API token, Blog ID, and Blog URL. You can now use this information to register your WordPress.com site.

Using WordPress XML-RPC

To push content using XML-RPC, you’ll need to enable XML-RPC on the destination site and provide the site URL, username, and password.

Note that if you have two-factor authentication enabled on the destination site, you will need to create an application password to use when adding a new site. Using your regular password will not work.

Pulling from RSS Feeds

Push Syndication can ingest RSS feeds into your site. It’s as simple as adding a site, setting the transport type to “RSS (pull)” and entering an RSS URL and title.

To add a site, go to the WordPress admin and find the “Sites” menu item, below Settings and choose “Add New”. In the settings, you’ll be able to customise the post’s type, status, comment settings, pingback settings and category.

Secure Credential Storage

To store passwords securely, define an encryption key in your wp-config.php:

`php

define( ‘PUSH_SYNDICATE_KEY’, ‘your-random-encryption-key-here’ );
`

This key is used to encrypt credentials when saved to the database.

Contributing

Pull requests are welcome on GitHub. See CONTRIBUTING.md for setup, checks and signed commits.

安裝方式

  1. Upload the syndication folder to /wp-content/plugins/ or install via the WordPress admin.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Visit Settings > Push Syndication to configure the plugin.
  4. When editing a post, use the “Syndication” metabox to select destination sites/groups.

常見問題集

What transport methods are supported?

  • WordPress.com REST API – For sites hosted on WordPress.com or using Jetpack
  • XML-RPC – For self-hosted WordPress sites with XML-RPC enabled
  • RSS/XML feeds – For pulling content from any feed source

Can I syndicate to non-WordPress sites?

The push functionality requires WordPress on the destination site. However, pull syndication can import content from any valid RSS or XML feed.

Does it work with multisite?

Yes, Syndication works with WordPress multisite installations. You can syndicate content between subsites or to external sites.

使用者評論

2016 年 9 月 3 日
Directions are not that easy to follow in order to set it up. It seems to only work to push to 1 site. When I tried it to 2 sites it did nothing. Also featured image doesn't show up, so have to go to the other site to put the featured image in.
閱讀全部 4 則使用者評論

參與者及開發者

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

參與者

〈Syndication〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Syndication〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

The highlights of recent releases are below. Every change, including older releases, is listed in CHANGELOG.md.

2.2.2

  • Fixed: PHP warnings logged when a post is pushed or deleted.
  • Fixed: Push deletions are now recorded in the site’s syndication log.

2.2.1

  • Security: Hardened the XML-RPC thumbnail methods, the log viewer, site and plugin settings, stored credentials, WordPress.com API requests and XML feed parsing.
  • Changed: XML-RPC thumbnails are fetched with wp_safe_remote_get(), so thumbnails from a source on a private address need that host allowed through the http_request_host_is_external filter.
  • Fixed: Filtering and pagination on the Syndication Logs screen.