We'll create fresh WordPress site with Hosted Content Importer (HCI) installed. You have 20 minutes to test the plugin after that site we'll be deleted.
It imports third party hosted contents within WordPress blog. You can define from which url/resource to fetch the content. The original source may be editable by anyone else whom you trust. Thus, it logically empowers you to allow other users to externally edit a particular section of your blogs. And, you do not have to give them any access credentials of your website.
After installation, use shortcode tag [third]
with few parameters as:
[third source="markdown" id="https://goo.gl/UpclKH" section=""]
source
is a content processor type.id
is a URL or ID given by the third parties.section
is an optional parameter to access deeper content.cache
is a boolean directive whether to reuse the cached content.It will then embed remote markdown content inside your blog.
Additionally, it will convert the text into HTML using Parsedown.
source: Where to seek the data (eg. Content Hosting Server). Examples:
The list is not limited, you expand it. Join/Fork Development
id: Content ID (unique identifier) of the data you want. Often:
section: Additional parameter to identify the specific section of the content.
[third source="markdown" id="https://goo.gl/UpclKH" section=""]
Learn to write your .md file.
[third source="gist" id="000000000000" section="filename.php"]
Create your gists at GitHub.
[third source="jotform" id="000000000000" section=""]
Create your own web form at JotForm website.
[third source="file" id="/tmp/readme.txt" section=""]
It has to be a static file for security reasons. For example, if you read the .php file, it will NOT process it, rather read its contents only. Your can contain valid HTML data, css and javascripts.
[third source="database" id="0" section="recent"]
Detailed implementations are left for the developers because of the nature. It is a proof of concept work. Please feel free to modify/expand it.
[third source="qr" id="YOUR DATA" section=""]
[third source="qr" id="url" section="internal"]
The above example is a full code. If you embed it anywhere, it lets your users copy that page’s URL into their mobile.
[third source="youtube" id="v00000000000" section=""]
Choose your video from YouTube.
You may often consider writing your own Content Processor.
Refer to Custom Content Processor section in [Other Notes]
tab.
If you want to develop your own Content Processor, it is much easier now.
Just create a tiny class file inside classes/processors as like one of the existing one. Simple examples are YouTube, JotForm and Gist processors.
class.processor_YOURNAME.inc.php
public function fetch($form_id = null, $section = null)
.
class.processor_none.inc.php
[third source="YOURNAME" section=""]
Click for real examples.
Just that much easy drop-in replacement.
Used from unsplash.com