GetContentFromURL

Plugin Banner

GetContentFromURL

by Daschmi

Download
Description

Loads content from other url by using a shortcode. Full content or special container by using XPath.

Examples:

  • Displays the whole content from a page.

    [gcfu url=”https://daschmi.de”]

  • Displays the featured article from wikipedia.

    [gcfu url=”https://de.wikipedia.org/wiki/Wikipedia:Hauptseite” xpath=”%2F%2F%2A%5B%40id%3D%22mf-tfa%22%5D”]

The XPath argument must be url encoded. You can use this tool.

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use the ‘[gcfu]’ shortcode on your pages
  1. <p>Grab the URL of the target page.</p>

    Grab the URL of the target page.

  2. <p>get the XPath of the target container. (for example with the chrome dev tools)</p>

    get the XPath of the target container. (for example with the chrome dev tools)

  3. <p>encode the XPath with urlencode.</p>

    encode the XPath with urlencode.

  4. <p>build and use the shortcut.</p>

    build and use the shortcut.

Installation Instructions

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use the ‘[gcfu]’ shortcode on your pages

1.0

  • Initial release
Back to top