Linux 软件免费装

Include Content Slice

开发者 bmellor
更新时间 2012年5月29日 09:25
PHP版本: 3.3.1 及以上
WordPress版本: 3.3.1

标签

html embed content share excerpt import duplicate mirror URL repeat include regex cross-post synchronize href reuse regular expression slice

下载

0.1 0.2

详情介绍:

The Include Content Slice plugin provides a shortcode you can use to include content in your Wordpress site from another URL, or from a local file on your server. This could be posts and pages from your own site, another Wordpress site, other blog sites, or any other page or file for which you have the URL. You can control what part (a "slice") of the source content you would like to include by wrapping it in begin and end tags, possibly containing regular expressions, or you can just include complete files. Begin and end tags are used in the source content to define what portion of the content you would like to include. (In this context, the word 'tag' refers to something like an html tag or comment, or some other reasonably unique delimiter that marks the beginning and ending of some portion of text. It does not mean tag in the sense of post taxonomy.) Typically, the source page is some HTML page and the delimiting string or tag will be in the form of an HTML comment. The plugin will look for and use the default delimiter tags <!--slice begin--> and <!--slice end--> in the source content. You can also specify your own begin and end tags as shortcode options. The begin and end tags do not need to be in the form of an HTML comment. They can be almost any text string found in the source content. The tags are case sensitive. Your tags will be interpreted as regular expressions, therefore you should not use characters like ^ $ . * + ? | () [] {} unless you are intending to use regular expressions. See "Other Notes". The most common application for this plugin is for reposting all or part of a post from one Wordpress site to another Wordpress site. The plugin was originally developed so that content could be edited in a single location and then included on other sites, in whole or in part, without having to be retyped. In this way, any changes made to the source page automatically appear on the other sites on which the source content is included. The source page does not need to be a Wordpress post. It can be any web page or text file, from a remote server or from a local disk. Please see "Other Notes" tab for additional usage instructions and examples. The Include Content by URL plugin makes use of the PHP Client URL Library (CURL). CURL is built-in to PHP since PHP version 4.0.2 which has been around for over a decade so you are unlikely to run into problems. This plugin does NOT make use of the file_get_contents() function.

安装:

  1. Upload the 'include-content-by-url' folder to the '/wp-content/plugins/' directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. If desired, adjust the default begin and end tags on the plugin settings page

更新日志:

0.1