[WordPress] 外掛分享: http-syndication

前言介紹

  • 這款 WordPress 外掛「http-syndication」是 2014-08-14 上架。
  • 目前有 20 個安裝啟用數。
  • 上一次更新是 2023-10-25,距離現在已有 557 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0.1 以上版本才可以安裝。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

vthierry |

外掛標籤

feed | export | rendering | syndication | http request |

內容簡介

這個外掛提供以下的「基本」功能:

顯示文章或頁面的內容,不包括標頭、側邊欄和頁腳。

從外部網站導入內容

導入WordPress站內內容

其他一些已棄用的功能

1. 顯示文章或頁面的內容,不包括標題、側邊欄和頁腳

為了呈現文章或頁面的原始內容,不包括任何標題、側邊欄和頁腳,請使用以下連結:

http://#mywordpressadress?httpsyndication&p=#post_or_page_id&title=#1_or_0

其中:

#mywordpressadress 是WordPress網站地址。
#post_or_page_id 是文章或頁面ID(您可以在編輯文章時的 http 鏈接中讀取文章ID)。
#1_or_0 定義是否顯示文章標題(包裹在

HTML標籤中),默認為1,即要顯示。

備註:

在這個文字中,所有以#為前綴的詞,例如#tag或#id,都對應一個變量,例如#tag代表任何標籤名稱或#id代表一個ID標籤。
文章內容在過濾後導出。

2. 從外部網站導入內容

為了將外部網站的文章或頁面內容導入到另一個文章或頁面中,使用以下短代碼:

[import url="#external_resource_location" ]

其中:

#external_resource_location 是外部網站的http地址。

在 [import ..] 短代碼中,以下選項允許選擇並調整要導入的內容:

內容選擇:

body=1:只導入....頁面中的..部分。
tag_id=#id:只提取具有指定id的第1個標籤的內容,即<#tag id="#id">..部分,其中#tag是任何標籤(例如 div,span,..)。
tag_class=#class:只提取具有指定類的第1個標籤的內容,即<#tag class="#class">..部分,其中#tag是任何標籤(例如div,span,..);值#class可以是正則表達式,以處理多個定義的類。
tag_name=#name:僅提取具有指定名稱的所有標籤的內容,即<#name ..>..部分(出於代碼安全考慮,最多只能提取100個標籤)。

內容過濾:

noscript=1:刪除所有..部分,避免從導入的HTML中運行任何活動JavaScript。
raw_href=1:提供原始href值,而不是像默認情況下所做的那樣正確地重新安置源HTML代碼中的相對href。
mediawiki=1:向URL添加?printable=yes&action=render查詢,以正確地發布MediaWiki網站。
style=#style或class=#class允許將內容封裝在帶有自定義類和/或樣式的中。

原文外掛簡介

This plugins offers the following “ground” functionnalities:

Display the content of a post or page without any header, sidebar and footer.

Importing the content from an external web site

Importing an internal content of the wordpress site

A few other deprecated functionalities

1. Displaying a post or page without any header, sidebar and footer
In order to render the raw content of a post or page without any header, sidebar and footer use the link:
http://#mywordpressadress?httpsyndication&p=#post_or_page_id&title=#1_or_0

where:

#mywordpressadress is the wordpress web site adress.
#post_or_page_id is the post or page id (you can read the post id in the http link when you edit the post).
#1_or_0 defines whether the post title (enclosed in a

HTML tag) is displayed (default is 1, i.e., true).

Remarks:

In this text all words prefixed by #, e.g., or #id correspond to a variable, e.g., means any tag name or #id means an ID label.
The post content is exported after filtering.

2. Importing the content from an external web site
In order to import an external a post or page contents in another post or page, use the following shortcode:
[import url="#external_resource_location" ]

where:

#external_resource_location is the external web site http location.

Inside the [import ..] shortcode, the following options allows to select and adjust the content to import:

Content selection:

body=1 : in order to only import the

..

part of the

..

..