WordPress plugin intelligence profile

External Content

This plugin registers a custom post type to handle external content like any other post. The post permalink is replaced by a custom post meta that hol …

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.4
Current version1.4.0
WordPress coverageTested up to WordPress 4.4
Minimum stackWP 2.9.0 · PHP —
Directory statusactive
Last directory update3 Jan 201610y ago
Active installations20Adoption metric — not a quality score
WordPress.org rating4.0 / 5 from 1 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records External Content version 1.4.0 as active, updated 10y ago and tested up to WordPress 4.4.

Overview

About this plugin

Have you ever wanted to integrate external content such as a specific post of an external website into your WordPress website? But treat it like any other post? That is, have it appear as teaser or part of a specific (pseudo) archive?

This is exactly when External Content kicks in.

Usage

External Content registers a custom post type that, by default, supports title, content, excerpt and thumbnail. This can be customized, though. Managing your posts in your backend is no different from any other post type.

Create a new post, give it a title, write some text, define an individual excerpt, and set a post thumbnail, if you wish. Then assign each post an individual external URL by means of the according meta box. This external URL will be used as the post’s permalink.

Filters

In order to customize certain aspects of the plugin, it provides you with several filters. For each of these, a short description as well as a code example on how to alter the default behavior is given below. php file or your customization plugin, or to some other appropriate place.

external_content_args

If you want to alter a specific post type argument but you can’t find a fitting filter, there’s external_content_args, which provides you with the complete args array.

/** * Filter the post type args. * * @param array $args Post type args. */ add_filter( 'external_content_args', function( $args ) {

// Use hierarchical external content $args[ 'hierarchical' ] = TRUE;

return $args; } );

external_content_description

The post type description can be customized by using the external_content_description filter.

/** * Filter the post type description. * * @param string $description Post type description. */ add_filter( 'external_content_description', function() {

'; } );

external_content_labels

In case you don’t like the labels, easily adapt them to your liking.

/** * Filter the post type labels. * * @param array $labels Post type labels. */ add_filter( 'external_content_labels', function( $labels ) {

// A little more horror, please... ';

return $labels; } );

external_content_meta_key

If you want to alter the meta key for the external URL, feel free to do it via this filter.

/** * Filter the meta key. * * @param string $meta_key Meta key. */ add_filter( 'external_content_meta_key', function() {

// Let's Shrekify the meta key return 'far_far_away'; } );

external_content_post_type

Yes, you can also alter the post type (slug).

/** * Filter the post type. * * @param string $post_type Post type. */ add_filter( 'external_content_post_type', function() {

return 'exotic_stuff'; } );

external_content_supports

This filter provides you with the post type supports.

/** * Filter the post type supports. * * @param array $supports Post type supports. */ add_filter( 'external_content_supports', function( $supports ) {

// If your theme uses the excerpt for teasers, just remove the editor to prevent confusion foreach ( $supports as $key => $value ) { if ( 'editor' === $value ) { unset( $supports[ $key ] ); } }

return $supports; } );

external_content_use_external_url

, post meta). To disable this behavior, just do the following:

/** * Filter the usage of the external URL as permalink. * * @param bool $use_external_url Use the external URL as permalink? */ add_filter( 'external_content_use_external_url', '__return_false' );

Contribution

To contribute to this plugin, please see its GitHub repository.

If you have a feature request, or if you have developed the feature already, please feel free to use the Issues and/or Pull Requests section.

Of course, you can also provide me with translations if you would like to use the plugin in another not yet included language.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • content
  • external
  • url
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.4

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.4.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.4
Minimum requirementsWordPress 2.9.0 · PHP not listed
Update activity3 Jan 201610y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.