Title: RDP Wiki Embed
Author: Robert D Payne
Published: <strong>8 april 2016</strong>
Last modified: 8 januari 2024

---

Plugins zoeken

![](https://ps.w.org/rdp-wiki-embed/assets/banner-772x250.png?rev=1616426)

Deze plugin **is niet getest met de laatste 3 grotere versies van WordPress**. Mogelijk
wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen
ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

![](https://ps.w.org/rdp-wiki-embed/assets/icon-128x128.png?rev=1616428)

# RDP Wiki Embed

 Door [Robert D Payne](https://profiles.wordpress.org/rpayne7264/)

[Download](https://downloads.wordpress.org/plugin/rdp-wiki-embed.1.2.20.zip)

 * [Details](https://nl.wordpress.org/plugins/rdp-wiki-embed/#description)
 * [Beoordelingen](https://nl.wordpress.org/plugins/rdp-wiki-embed/#reviews)
 *  [Installatie](https://nl.wordpress.org/plugins/rdp-wiki-embed/#installation)
 * [Ontwikkeling](https://nl.wordpress.org/plugins/rdp-wiki-embed/#developers)

 [Ondersteuning](https://wordpress.org/support/plugin/rdp-wiki-embed/)

## Beschrijving

RDP Wiki Embed will pull content from any MediaWiki website (such as wikipedia.org)
and embed it in pages and posts. It strips and reformats the content, allowing you
to supply some arguments to dictate how this works.

RDP Wiki Embed can also look for all links to wiki sites listed in the Security 
section and force the content on the current page to be replaced with the content
found at the wiki site when the link is clicked. Visitors will be able to read wiki
content without leaving your site.

**RDP Wiki Embed is not coded to work with the block editor. Therefore, the shortcode
button will not work.** A plugin that restores the classic editor will need to be
installed for the shortcode button to work. Get the Classic Editor Plugin [here.](https://wordpress.org/plugins/classic-editor/)

#### Support

Posting to the WordPress.org Support Forum does not send me notifications of new
issues. Therefore, please send support requests using the [contact form on my web site.](http://www.rdptechsolutions.com/contact/)

#### Sponsor

This plug-in brought to you through the generous funding of [Laboratory Informatics Institute, Inc.](http://www.limsinstitute.org/)

### Gebruik

Use the shortcode [rdp-wiki-embed] for embedding MediaWiki content. The following
arguments are accepted:

 * url: (vereist) het webadres van het wiki-artikel dat je in deze pagina wil invoegen
 * title_show: 0 (nul) om de titel te verbergen of 1 om hem te tonen
 * toc_show: 0 (nul) om de inhoudstafel (TOC) te verbergen of 1 om ze te tonen
 * edit_show: 0 (zero) to hide edit links or 1 to show
 * infobox_show: 0 (zero) to hide info boxes or 1 to show
 * unreferenced_show: 0 (zero) to hide “unreferenced” warning boxes or 1 to show
 * wiki_update: number of minutes content of the wiki page will be stored on your
   site, before it is refreshed
 * wiki_links: behavior after clicking a link to wiki content – **default** or **
   overwrite**
 * wiki_links_open_new: 0 (nul) om de wiki links in hetzefde scherm te openen of
   1 om het in een nieuw scherm te openen
 * global_content_replace: 1 to apply embed overwrite behavior to all wiki links
   on the site or 0 (zero)
 * global_content_replace_template: page template to use for replaced content
 * source_show: 0 (zero) to hide attribution or 1 to show
 * pre_source: text for source label

#### Voorbeelden

Basis gebruik:

[rdp-wiki-embed url=’http://en.wikipedia.org’]

Display table-of-contents and info boxes, but hide title, edit links and ‘unreferenced’
warning boxes:

[rdp-wiki-embed url=’http://en.wikipedia.org’ title_show=’0′ toc_show=’1′ edit_show
=’0′ infobox_show=’1′ unreferenced_show=’0′]

#### About Overwrite and Global Content Replace

Global content replace requires Overwrite mode to be enabled. When content is being
replaced in Overwrite mode, the Default Shortcode Settings on the plug-in’s settings
page will be applied to content that is fetched from wiki sites.

### Action Hook Reference:

#### rdp_we_scripts_enqueued

 * Parameters: geen
 * Fires after enqueuing plug-in-specific frontend scripts

#### rdp_we_styles_enqueued

 * Parameters: geen
 * Fires after enqueuing plug-in-specific frontend styles

### Filter referentie

#### rdp_we_scrub_remove_elements_filter

 * Param: Array of HTML elements to remove from the raw wiki content, before being
   cached
 * Return: Array of HTML elements to remove from the raw wiki content, before being
   cached

#### rdp_we_prerender_remove_elements_filter

 * Param: Array of HTML elements to remove from the wiki content, before rendering
   to browser
 * Return: Array of HTML elements to remove from the wiki content, before rendering
   to browser

## Schermafbeeldingen

[⌊Instellingenpagina⌉⌊Instellingenpagina⌉[

Instellingenpagina

[⌊Media button to launch shortcode embed helper form⌉⌊Media button to launch shortcode
embed helper form⌉[

Media button to launch shortcode embed helper form

[⌊Shortcode embed helper form⌉⌊Shortcode embed helper form⌉[

Shortcode embed helper form

## Installatie

#### Vanuit je WordPress dashboard

 1. Bezoek ‘Plugins > Nieuwe toevoegen’
 2. Search for ‘RDP Wiki Embed’
 3. Click the Install Now link.
 4. Activate RDP Wiki Embed once it is installed.

#### Van WordPress.org

 1. Download RDP Wiki Embed zip file.
 2. Upload the ‘rdp-wiki-embed’ directory from the zip file to your ‘/wp-content/plug-
    ins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
 3. Activate RDP Wiki Embed from your Plugins page.

#### After Activation – Go to ‘Settings’ > ‘RDP Wiki’ and:

 1. Set configurations as desired.
 2. Click ‘Save Changes’ button.

## Beoordelingen

![](https://secure.gravatar.com/avatar/77e32a2719113809b4304d6dd404cef4ea885bb89bacf186cd0236bfe0f2c11a?
s=60&d=retro&r=g)

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-38821/)󠁿

 [Harald Wenzel](https://profiles.wordpress.org/epiphanius1/) 21 april 2024

Many thanks to the author of this plugin. Initially, it did not work and gave an
error message. Cause: You have to omit the inverted commas in the URL.

![](https://secure.gravatar.com/avatar/99ce7afca2331be003b795e264370b392aa03356e9fe76b77e0e32f2379230ca?
s=60&d=retro&r=g)

### 󠀁[What a great resource](https://wordpress.org/support/topic/what-a-great-resource/)󠁿

 [Tom Palmer](https://profiles.wordpress.org/tompalmer999/) 26 juni 2020

What a great resource. And nicely implemented. I only wish the info box and table
of contents could be set to not display on mobile devices. They don't format properly,
so aren't really an option to use. Perhaps in a premium version? Otherwise, perfect!

![](https://secure.gravatar.com/avatar/beba8607de9cabe14c4feb8d8dee8c24be077061b60248e3148276401f66e422?
s=60&d=retro&r=g)

### 󠀁[Plugin is not compatible with PHP 7.2 or 7.3](https://wordpress.org/support/topic/plugin-is-not-compatible-with-php-7-2-or-7-3/)󠁿

 [hwuser](https://profiles.wordpress.org/hwuser/) 16 april 2020 1 reactie

Plugin is not compatible with PHP 7.2 or 7.3 Technical support does not answer… 
Update 16/04/2020 Now it works!! Thanks!!!

![](https://secure.gravatar.com/avatar/72b223d64d2d8cbfb475b5da40917691af4321eaa474eb3e8774ea0f3be6baff?
s=60&d=retro&r=g)

### 󠀁[Great plugin and support](https://wordpress.org/support/topic/great-plugin-and-support-896/)󠁿

 [lama010101](https://profiles.wordpress.org/lama010101/) 7 april 2020

Works very well: will embed the whole Wiki page + Robert quickly replied to me to
solve a problem with the URL.

![](https://secure.gravatar.com/avatar/e57d7c6f477319a115f7c4cf684b44dace805c793a8a6365bc03d3f1e36c5490?
s=60&d=retro&r=g)

### 󠀁[Works Perfectly](https://wordpress.org/support/topic/works-perfectly-1667/)󠁿

 [swamparoo](https://profiles.wordpress.org/swamparoo/) 24 april 2019

Works perfectly. Just have to enter the URL of the Wikipedia article you want. I
love how it has the feature to let visitors stay on your website. When you link 
to the article just use the wiki_links argument and set it to overwrite. When you
do that any links in the embedded Wikipedia article will load on your site on that
embedded page.

![](https://secure.gravatar.com/avatar/208094fb4880ca8767f0c5d975fa3b1630cd6de0709f6460da89bfa3485dbb50?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-5647/)󠁿

 [Picturgency](https://profiles.wordpress.org/picturgency/) 18 december 2018

Simple, awesome ! No conflict with visual composer, the tool is beside media insert
button in pages. Brilliant ! Thank you so much !

 [ Lees alle 12 beoordelingen ](https://wordpress.org/support/plugin/rdp-wiki-embed/reviews/)

## Bijdragers & ontwikkelaars

“RDP Wiki Embed” is open source software. De volgende personen hebben bijgedragen
aan deze plugin.

Bijdragers

 *   [ Robert D Payne ](https://profiles.wordpress.org/rpayne7264/)
 *   [ Benjamin Danon ](https://profiles.wordpress.org/bndn/)

[Vertaal “RDP Wiki Embed” in je eigen taal.](https://translate.wordpress.org/projects/wp-plugins/rdp-wiki-embed)

### Interesse in ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/rdp-wiki-embed/), haal
de [SVN repository](https://plugins.svn.wordpress.org/rdp-wiki-embed/) op, of abonneer
je op het [ontwikkellog](https://plugins.trac.wordpress.org/log/rdp-wiki-embed/)
via [RSS](https://plugins.trac.wordpress.org/log/rdp-wiki-embed/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.2.20

 * Made minor code changes so things work with PHP 8
 * Updated function **RDP_WIKI_EMBED_CONTENT->scrub()** to remove vector-* classed
   elements

#### 1.2.19

 * Added function **RDP_WIKI_EMBED_CONTENT->buildLink(()**.
 * Modified function **RDP_WIKI_EMBED_CONTENT->scrub()** to preserve red links.

#### 1.2.18

 * Fixed bug related to the remove elements process

#### 1.2.17

 * Added settings option to hide the title of fetched wiki pages.
 * Added settings option to allow a list of CSS selectors to target for removal 
   from fetched wiki pages.
 * Modified **RDP_WIKI_EMBED_CONTENT->content_get()** to use old cURL code for fetching
   wiki pages.

#### 1.2.16

 * Modified **RDP_WIKI_EMBED_CONTENT->preRender()** to check for empty white list.
 * Modified **RDP_WIKI_EMBED_CONTENT->content_get()** to use WordPress HTTP API.
 * Modified **RDP_WIKI_EMBED->shortcode()** to skip URL validation check.
 * Modified regex patterns in rdp_simple_html_dom (lines 691 and 1387) to fix parsing
   for PHP 7.3.

#### 1.2.15

 * Modified **RDP_WIKI_EMBED_CONTENT->preRender()** to use white list URLs to determine
   if a link should be treated as an external link.

#### 1.2.14

 * Minor changes

#### 1.2.13

 * Updated content parsing to remove jump links

#### 1.2.12

 * Updated content parsing to preserve line breaks in HTML

#### 1.2.11

 * Updated link overwrite script to skip menu items with the class **no-wiki-overwrite**

#### 1.2.10

 * Modified **RDP_WIKI_EMBED_CONTENT->content_get()** to use in-memory-only cookies

#### 1.2.9

 * Addressed issue where **No Caching** setting was ignored

#### 1.2.8

 * Revert shortcode to always render the book TOC button

#### 1.2.7

 * Modified shortcode to prevent rendering of the TOC button if toc_show = 0

#### 1.2.6

 * Re-worked php code and JS code to skip file pages, to leave download links for
   files and images intact

#### 1.2.5

 * Modified code to ignore headline anchors, where the class attribute contains **
   mw-headline**, when adding **rdp-we-** prefix to the id attributes of HTML elements
   coming in from MediaWiki sites

#### 1.2.4

 * Added check for array to RDP_WIKI_EMBED_CONTENT->scrub();

#### 1.2.3

 * Modified code to ignore cite anchors when adding **rdp-we-** prefix to the id
   attributes of HTML elements coming in from MediaWiki sites
 * Moved code that adds **rdp-we-** prefix to the id attributes of HTML elements
   to **RDP_WIKI_EMBED_CONTENT->preRender()**, from **RDP_WIKI_EMBED_CONTENT->scrub()**
 * Modified code section that identifies links to external files
 * Added **RDP_WIKI_EMBED_UTILITIES::leadingslashit()**
 * Added **RDP_WIKI_EMBED_UTILITIES::unleadingslashit()**
 * Modified code section that tries to convert relative image URLs to absolute URLs

#### 1.2.2

 * Modified code to make a second call to RDP_WIKI_EMBED->enqueueScripts(), to ensure
   that any overriding shortcode atts are honored
 * Modified **RDP_WIKI_EMBED->contentFilter()** for simplicity
 * Removed **RDP_WIKI_EMBED->getPageShortcode()**
 * Fixed bug in **RDP_WIKI_EMBED->handleTemplateSelection()** related to obtaining
   default settings
 * Added _math_ to the default element remove list in RDP_WIKI_EMBED_CONTENT->scrub()
 * Added filter **rdp_we_scrub_remove_elements_filter**
 * Added filter **rdp_we_prerender_remove_elements_filter**

#### 1.2.1

 * Slight modification to overwrite functionality

#### 1.2.0

 * Refactored code to leave download links for files and images intact
 * Refactored code to add **rdp-we-** prefix to the id attributes of HTML elements
   coming in from MediaWiki sites
 * Refactored overwrite code to use same shortcode attributes specified in a page’s
   original RDP Wiki Embed shortcode
 * Added WP_CRON job to clear expired content from cache

#### 1.1.3

 * Refactored code to properly parse source URL for data-href link attribute
 * Added backup routine to look for rdp_we_resource query variable

#### 1.1.2

 * Security update

#### 1.1.1

 * Updated CSS to show formulas

#### 1.1.0

 * Fix no-cache option setting
 * Add option setting to show wiki admin links
 * Add option setting to show wiki footer

#### 1.0.0

 * Initial RC

## Meta

 *  Versie **1.2.20**
 *  Laatst geüpdatet **3 jaar geleden**
 *  Actieve installaties **300+**
 *  WordPress versie ** 3.0 of nieuwer **
 *  Getest t/m **6.4.14**
 *  Taal
 * [English (US)](https://wordpress.org/plugins/rdp-wiki-embed/)
 * Tags
 * [mediawiki](https://nl.wordpress.org/plugins/tags/mediawiki/)[wiki](https://nl.wordpress.org/plugins/tags/wiki/)
   [wiki embed](https://nl.wordpress.org/plugins/tags/wiki-embed/)
 *  [Geavanceerde weergave](https://nl.wordpress.org/plugins/rdp-wiki-embed/advanced/)

## Waarderingen

 5 van 5 sterren.

 *  [  12 5 sterren beoordelingen     ](https://wordpress.org/support/plugin/rdp-wiki-embed/reviews/?filter=5)
 *  [  0 4 sterren beoordelingen     ](https://wordpress.org/support/plugin/rdp-wiki-embed/reviews/?filter=4)
 *  [  0 3 sterren beoordelingen     ](https://wordpress.org/support/plugin/rdp-wiki-embed/reviews/?filter=3)
 *  [  0 2 sterren beoordelingen     ](https://wordpress.org/support/plugin/rdp-wiki-embed/reviews/?filter=2)
 *  [  0 1 sterren beoordelingen     ](https://wordpress.org/support/plugin/rdp-wiki-embed/reviews/?filter=1)

[Je beoordeling](https://wordpress.org/support/plugin/rdp-wiki-embed/reviews/#new-post)

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/rdp-wiki-embed/reviews/)

## Bijdragers

 *   [ Robert D Payne ](https://profiles.wordpress.org/rpayne7264/)
 *   [ Benjamin Danon ](https://profiles.wordpress.org/bndn/)

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/rdp-wiki-embed/)