HTML method
If you know HTML then it’s very easy to do it for one image.- Add a new text widget to the sidebar.
- Use the image tag to display the image: <img>
<img src="http://www.oik-plugins.com/wp-content/uploads/2012/12/rounding-the-bassin-du-thau-lighthouse.jpg/>
- Wrap it in an anchor tag for the link: <a>
<a href="http://www.oik-plugins.com/?p=6436>image tag goes here</a>
OR using the permalink
<a href="http://www.oik-plugins.com/2012/12/show-a-single-image-link-to-a-page-using-bw_thumbs-or-bw_images/">image tag goes here</a>
And that’s fine. Until you want to change the image or the target of the link. BUT wouldn’t it be easier to use a shortcode?
oik shortcode and custom image link URL
Using the oik custom image link URL and a shortcode we can reduce the amount of typing you need to do. The [bw_thumbs] or [bw_images] shortcodes can be used to display attached images and the oik custom image link URL can be used to route the viewer to the target. Here we display the attachment(s) to the page.[bw_thumbs post_type=attachment post_parent=6436]