Support » Plugins » get the image – linkt to image URL

  • Hi,

    I am using the get-the-image plugin to get a range of images and insert them into a slider. The plugin also allows to use the images as a link to the original post it came from. Now I would like to alter the script so it will link to the original url of the image. I found the place where I could alter this, but I’m not PHP-speaker enough to actually know what to write down here. This is where it adds the link to the original post:

    ` /* If $link_to_post is set to true, link the image to its post. */
    if ( $link_to_post )
    $html = ‘<a href=”‘ . get_permalink( $post ) . ‘”>’ . $html . ‘</a>’`

    anybody any idea?



Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘get the image – linkt to image URL’ is closed to new replies.