Contributors: billerickson
Tags: pinterest, image, sharing, social sharing, share buttons, social buttons, share counts, social
Requires at least: 4.6
Tested up to: 5.6
Stable tag: 1.4.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
This add-on for Shared Counts allows you to share a different image on Pinterest.
Shared Counts uses the post's featured image for sharing across all platforms. But given the unique display of images on Pinterest, it's useful to specify a separate, Pinterest-only image that's formatted for that service.
This plugin will only work if Shared Counts is active. It does not work with any other social sharing plugins.
- Download the plugin from GitHub. or from WordPress.org.
- Activate plugin.
- When editing a post, use the "Pinterest Sharing Image" metabox in the sidebar (see screenshot).
By default the Pinterest Sharing Image box is only added to posts, but you can use a filter to add support for other post types.
The following code will add the box to pages. Add it to your theme's functions.php file or a Core Functionality plugin.
/**
* Pinterest Sharing Image on pages
*
* @author Bill Erickson
* @see https://github.com/billerickson/Shared-Counts-Pinterest-Image
*
* @param array $post_types
* @return array
*/
function be_pinterest_image_on_pages( $post_types ) {
$post_types[] = 'page';
return $post_types;
}
add_filter( 'shared_counts_pinterest_image_post_types', 'be_pinterest_image_on_pages' );
If you find an bug or problem, please let us know by creating an issue.