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

RESTful Content Syndication

外掛說明

RESTful Syndication allows you to automatically ingest content from other WordPress sites, using the WordPress REST API.

This can allow you to run a network of sites, which all receive the same post content.

There is a small selection of options, allowing you select the author, default post status, automatically create the appropriate terms, and set the Yoast No-Index status.

螢幕擷圖

安裝方式

  1. Install this plugin through the WordPress plugins screen.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings -> RESTful Syndication screen to configure the plugin
    a. Set the ‘Master Site URL’ to the base URL of the site to pull the content from (e.g. https://example.com/)
    b. Username and Password are not required by default (but may be required by the person running the Master Site). You can use the WordPress Applicaton Password feature for authentication.
    c. Set the other options as desired
    d. Save your settings
    e. Press the ‘Ingest Posts Now’ button to test it works!

Posts will automatically be ingested every 15 minutes by WP-Cron. There’s also a button to manually pull content on-demand.

If you also control the master site, and use the Yoast SEO plugin, you may want to install this additional plugin: https://github.com/ChazUK/wp-api-yoast-meta

常見問題集

Do I need to install a plugin on the master site?

No, so long as the master site has the WordPress REST API enabled, then you’re all good to go.

If both the Master and Child sites use Yoast SEO, the Canonical URLs and Meta Descriptions of each post will also be imported.

I’m having trouble connecting to a HTTPS Master Site, but HTTP works fine.

Check your web host has installed the appropriate CA Root Certs for PHP’s CURL.

Something isn’t working. What do I do?

Find the PHP Error Log for your website/web-server. Any errors from this plugin should be prefixed with ‘RESTful Syndication ERROR’.

Do you provide support?

Commercial support is available from Media Realm (for a fee). Email us here: https://mediarealm.com.au/contact/

Can you add a certain feature?

You may be able to sponsor feature development. Email us here with your feature request: https://mediarealm.com.au/contact/

使用者評論

2019 年 2 月 12 日
Thank you so much! This plugin works. Kudos to the developers. I have been searching for forever for a plugin like this. Thank you so much.
閱讀全部 1 則使用者評論

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.4.2

  • Add an explicit timeout for accessing the REST API
  • When downloading images, use wp_remote_get instead of file_get_contents

1.4.1

  • Uses the native Yoast SEO REST fields, instead of fields supplied by a third party plugin
  • Adds additional checks to see if Yoast fields are populated or empty

1.4.0

  • Adds an option to add a specific category to every incoming post
  • Tracks syndicated media in a meta field, instead of relying on the filename.

1.3.0

  • Add new options to purge media & posts older than a certain number of days
  • Additional compatibility for YouTube and Audio embeds
  • Allow iFrames to be syndicated
  • Translate Instagram embeds into iFrames
  • Bugfix for Audio embeds
  • Catch errors causing empty posts to be syndicated
  • Security hardening on the admin screen
  • Additional logging details

1.2.1

  • Fix a bug where category creation wasn’t working during content Push

1.2.0

  • Change the method used to pull categories, tags, and authors

1.1.1

  • Featured Image: Fallback to alternative URL if full URL isn’t found
  • Syndication Push: Fix issue matching domains on incoming content

1.1.0

  • PHP 8 compatibility
  • Bugfixes when adding tags and categories
  • Add logging for failed image downloads
  • Push data receive: Check if no payload is received from remote server

1.0.6

  • Handle YouTube embeds, and convert them into the [embed] shortcode

1.0.5

  • Prevent the same image being imported multiple times
  • Fix a pre-PHP 5.6 compatibity issue with the DOM manipulation class

1.0.4

  • Add some handling of HTML5 tags, to convert them into [audio] shortcodes

1.0.3

  • Fix issues with Auto-Publishing, and auto Tag/Category creation (thanks to David from Advantage IT)

1.0.2

  • Add a check to see if the background wp-cron task has dropped off the scheduled tasks list

1.0.1

  • Fix cron timing.

1.0

  • Initial public release.