WordPress Guy

WordPress Guy designs and develops WordPress themes and plugins. WordPress Guy teaches you WordPress stuff.

If, like me, you have blogs where you use to have an image at the very beginning of your posts then you should know that people expect to access your post by clicking on the image (I tested this with CrazyEgg).

That’s why I came up with the Linked Image plugin. This little plugin does just that, it takes the first image in your post and links it to the post itself. Everywhere but in the post page.

Download

Linked Image 1.0

Installation

  1. Download the plugin and expand it.
  2. Copy the ‘first-image-permalink.php’ file into your plugins folder (wp-content/plugins/).
  3. Login into the WordPress administration area and go to the Plugins page.
  4. Locate the First Image Permalink plugin and click on the activate link
  5. That’s it

Known Issues

  • The plugin doesn’t currently work if the first image is already linked and may render unexpected results.
  • Smileys get linked too

Donate

Support further plugin development by making a small donation:

donate

Blog reactions

Comments

  • June 13th, 2011 at 6:44 am

    can you update plugin, i see no update for long time

  • September 5th, 2011 at 7:30 pm

    ... Linked Image- This plugin takes the first image in your post and links it to the post ...

  • ... 22)┬áLinked Image- This plugin takes the first image in your post and links it to the post itself. ...

  • February 5th, 2012 at 3:19 pm

    ... Source: ...

  • June 11th, 2012 at 4:18 pm

    Do you know how I can filter out pages from this plugin? I’m having to put a header banner because things like an rss image will get linked too. I haven’t worked out in the code how to edit it so that it only works for pages. Do you know anything?!

    • January 3rd, 2013 at 10:17 am

      To filter out pages from this plugin, just add !is_page() inside the if conditional statement.
      if (!is_single() && !is_page()){
      $content = preg_replace($searchfor, $replacewith, $content, 1);
      }

  • January 10th, 2013 at 4:12 am

    Dude, you made it. Thank you very much.

  • Richa
    February 5th, 2013 at 1:39 am

    Good stuff

  • Kasper
    March 2nd, 2013 at 7:50 pm

    Is there a way to make this plugin remove the original link instead of just wrapping it in a new?

  • Denny
    June 25th, 2013 at 5:58 am

    Amazing plugin!!!

  • January 19th, 2014 at 1:36 pm

    It still works, great!

  • August 12th, 2014 at 12:27 pm

    Thanks for share. It’s very good!

  • August 12th, 2014 at 12:30 pm

    It’s very good! However, How it creates links to old posts?

Your Comment