Related Posts Thumbnails
Problem with the alt tag of the image (1 post)

  1. nichitos
    Posted 3 years ago #

    I've discovered a possible problem with this plugin. The problem is determined by the alt tag attributed to image. Instead of the normal "alt" of the image, the plugin adds the title of the post as alt tag.

    If you have a long post title, the alt of the image will be very long. This can determine some SEO problems (can be interpreted as keyword stuffing).

    The code that must be replaced is this one:

    <img alt="' . $title . '" src="' . $url . '" width="' . $width . '" height="' . $height . '" ';

    with this one

    <img alt="' . $alt . '" src="' . $url . '" width="' . $width . '" height="' . $height . '" ';

    However, I'm not a php expert and the code doesn't work. I mean... the alt remains empty and I don't know how to make it to take the alt tag in the empty field.

    Do you have a solution? Can you help me?

    Thank you!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Related Posts Thumbnails
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic