This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

External markup


Retrieve markup from external websites based on html-comments.
The plugin creates htmlfiles that are inserted into the templates
where the function call is made. Uses CURL or fOPEN to retrive the
external content. Also checks the age of the htmlfile using filemtime
and compares it to the option “em_external_src_cache”.

Websites that are using this plugin:


The markup from external source must be tagged with specific html-comments.
Plugin retrives markup from start/end comments.

The htmlfile path is default set to /themes/TEMPLATENAME/em_cache/
Create folder /themes/TEMPLATENAME/em_cache/ and make it writeable (chmod 777)

The file external_markup_functions.php must be included in the template functions.php.
Copy the file external_markup_functions.php into your template folder.

Example: include_once (TEMPLATEPATH . ‘/external_markup_functions.php’);

For retriving navigation markup from;
Function call in template: em_showContent(“main-navigation start”,”main-navigation end”,EM_EXAMPLE,FALSE)

Explanation of function call:

  • em_showContent is the function (found in external_markup_functions.php)
  • HTML-COMMENT-START, the start html-comment
  • HTML-COMMENT-END, the end html-comment
  • DEFINE HTMLFILENAME, the name definition of the htmlfile (see documentation in external_markup_functions.php)
  • COMPRESS, should the htmlfile be compressed (FALSE/TRUE) – use with caution!

Contributors & Developers

“External markup” is open source software. The following people have contributed to this plugin.

Translate “External markup” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.