Support » Plugin: This-or-That » Featured Image has built in link

  • My theme adds a link around the featured image. So, the this-or-that link is wrapped around that link. And when I click to vote on an image, it uses the built in link and takes me to the page as opposed to voting.

    Is there a solution for themes where the featured image is already hyperlinked?

    Example:

    <div class="this-or-that_thumbwrapper">
    <a href="?thisthat=805%2C804%2C805&_wpnonce=8754e4da59" title="Flowy Frocks: Violet" class="this-or-that-btn" rel="nofollow">
    </a>
    <a href="this-or-that/flowy-frocks-violet-2/" title="Flowy Frocks: Violet">
    <img width="220" height="475" src="wp-content/uploads/2014/05/violet.png" class="attachment-full wp-post-image" alt="violet">
    </a>
    </div>

    https://wordpress.org/plugins/this-or-that/

Viewing 1 replies (of 1 total)
  • Thread Starter ajonesdc

    (@ajonesdc)

    In case anyone else runs into this, here’s a solution:

    In this plugin’s this-or-that.php, change line 253

    from:
    <?php the_post_thumbnail( $thumb_size ); ?>

    to:
    <?php echo wp_get_attachment_image( get_post_thumbnail_id( $post->ID ), ‘$thumb_size ‘, false );?>

Viewing 1 replies (of 1 total)
  • The topic ‘Featured Image has built in link’ is closed to new replies.