WordPress.org

Ready to get started?Download WordPress

Forums

Pinterest Pin It Button For Images
Pin Featured Image in Sidebar (4 posts)

  1. myrko
    Member
    Posted 1 year ago #

    I'm displaying the featured image of a post in the sidebar. The plugin is not putting the button there (probably because that's not in the loop?). Could you make it that the sidebar is used as well OR in other words: the featured image can be pinned, whereever it is (maybe selected via a class)!??

    Thanks!

    Myrko

    http://wordpress.org/extend/plugins/pinterest-pin-it-button-for-images/

  2. Imran ul Haque Ansari
    Member
    Posted 1 year ago #

    i am also looking for featured image.

  3. jennjett
    Member
    Posted 11 months ago #

    Looking for featured image use as well. Would love to get that working! thanks! jenn

  4. Imran ul Haque Ansari
    Member
    Posted 10 months ago #

    This code is working for me.

    <div class="featuredImg">
    <span class="pibfi_pinterest">
        <?php
            $pinterestimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
        ?>
        <span class="xc_pin" onclick="pin_this(event, 'http://pinterest.com/pin/create/button/?url=<? the_permalink(); ?>&media=<?php echo $pinterestimage[0]; ?>&description=<?php the_title();?>')">
        </span>
    </span></div>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic