WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Infographic Embedder

Give your readers an easier way to embed your infographics (or other images) on their sites, with proper attribution back to you.

  1. Upload the wp-embed-infographic folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Insert the URL of the image you're using in the 'Infographic Embedder' meta box.
  4. Publish or update your post.

Filter: Add Post Types

function infographics_on_my_post_types() {
    return array (
        'post',
        'page',
        'other-post-type'
    );
}

add_filter ( 'infographic_embedder_post_types', 'infographics_on_my_post_types' );

Filter: Edit Embed Code

function infographics_custom_embed_code() {
    return '<img src="' . get_post_meta( get_the_ID(), 'infographic_embedder_post_class', true ) . '" alt="' . get_the_title() . ' - An Infographic from the Awesome ' . get_bloginfo('name') . '" width="100%" class="infographic_embedder" /><p class="infographic_attr">How awesome is <a href="' . get_permalink() . '" target="_blank">' . get_bloginfo('name') . '?!</a></p>';
}

add_filter ( 'infographic_embedder_image_code', 'infographics_custom_embed_code' );

Filter: Download Text

function infographics_custom_image_code() {
    return '<p><a href="' . get_post_meta( get_the_ID(), 'infographic_embedder_post_class', true ) . '" target="_blank">Download</a> our infographic today!</p>';
}

add_filter ( 'infographic_embedder_download_html', 'infographics_custom_image_code' );

Filter: Custom Header and Labeling

function infographics_custom_labeling() {
    return '<h3>Embed</h3><label for="embed_width">Image Width</label>';
}

add_filter ( 'infographic_embedder_embed_html', 'infographics_custom_labeling' );

Requires: 3.8 or higher
Compatible up to: 3.9.2
Last Updated: 2014-4-17
Downloads: 2,645

Ratings

5 stars
5 out of 5 stars

Support

1 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1