• If the Facebook post contains text with a link and an image then an error occurs. The title tag of the image is the text of the post, however as this contains a link with characters such as double-quotes it breaks the tag and things look weird!

    Here’s an example of what I mean. If the Facebook post is:

    I like apples – http://www.apple.com [picture of an apple]

    then the title tag of the [picture of an apple] will be:

    title="I like apples - <a href="http://www.apple.com">"

    Is there a fix for this?

    https://wordpress.org/plugins/ik-facebook/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author richardgabriel

    (@richardgabriel)

    Hey Tim!

    Thanks for letting us know! I think this is something I will have to address as an update for you, and I will look into this ASAP.

    Best,
    Richard

    Thread Starter timsnell

    (@timsnell)

    Thanks for the quick response – cheers Richard

    Thread Starter timsnell

    (@timsnell)

    If this is affecting anyone else a temporary solution is to change line 915 in ik_facebook.php from

    $replace = '<a href="'.$photo_link.'" target="_blank"><img src="'.$item->picture.'" title="'.$title.'"></a>';

    to

    $replace = '<a href="'.$photo_link.'" target="_blank"><img src="'.$item->picture.'" title="Click for fullsize photo"></a>';

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Image title tag with links error’ is closed to new replies.