Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Claudio Sanches

    (@claudiosanches)

    I don’t think that is a bug, since it’s the first time that I’m seeing it.
    Smells like a conflict from one of your plugins or theme.

    Thread Starter Bob the web builder

    (@yourlive)

    Hi Claudio,

    Thanks for your quick respons. I did some more testing, it wasn’t a plugin conflict but a conflict with a little bit of custom code in my theme’s functions.php.

    For others with the same problem, I used the code below to make the featured image link to the post, but that seems to conflict with WooCommerce 2.6. I’ve been using this code for years with WooCommerce before, never a problem, but since WooCommerce 2.6 it is a problem ??

    add_filter( 'post_thumbnail_html', 'my_post_image_html', 10, 3 );
    
    function my_post_image_html( $html, $post_id, $post_image_id ) {
    
      $html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_post_field( 'post_title', $post_id ) ) . '">' . $html . '</a>';
      return $html;
    
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Product title doesn't link to product page anymore’ is closed to new replies.