=== Infographic Embedder ===
Contributors: cliffseal
Tags: infographics,embed,embedder,image
Requires at least: 3.8
Tested up to: 3.9
Stable tag: 1.1.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Give your readers an easier way to embed your infographics (or other images) on their sites, with proper attribution back to you.
== Description ==
With a single URL in an 'Edit Post' page (and no setup), you can automatically add a properly attributed, easy-to-copy embed code to the bottom of your posts. Readers can also edit the width of the image in the embed code to either percent or pixels (the default is 100%).
While it was built with infographics in mind, you can certainly use any image you'd like.
Want to improve the plugin or add a feature? [Fork it on GitHub](https://github.com/Pardot/wp-embed-infographic) and let's work on it!
== Installation ==
1. Upload the `wp-embed-infographic` folder to the `/wp-content/plugins/` directory.
1. Activate the plugin through the 'Plugins' menu in WordPress.
1. Insert the URL of the image you're using in the 'Infographic Embedder' meta box.
1. 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 '
How awesome is ' . get_bloginfo('name') . '?!
'; } add_filter ( 'infographic_embedder_image_code', 'infographics_custom_embed_code' );` = Filter: Download Text = `function infographics_custom_image_code() { return 'Download our infographic today!
'; } add_filter ( 'infographic_embedder_download_html', 'infographics_custom_image_code' );` = Filter: Custom Header and Labeling = `function infographics_custom_labeling() { return '