Title: Link URL Possible?
Last modified: August 22, 2016

---

# Link URL Possible?

 *  Resolved [rickrob](https://wordpress.org/support/users/rickrob/)
 * (@rickrob)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/link-url-possible/)
 * Hi there,
 * This seems like the plugin I need as it is simple and to the point. However, 
   I am not seeing an option to link to a URL (I see this question has been asked
   before).
 * Is there a way to do this? That is, when the image is clicked it will bring you
   to a URL you specify. If not please let me know and I will mark the answer as
   resolved and move along.
 * Thanks for your help!
    RR
 * [https://wordpress.org/plugins/mpress-image-refresh/](https://wordpress.org/plugins/mpress-image-refresh/)

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

 *  [Micah Wood](https://wordpress.org/support/users/woodent/)
 * (@woodent)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/link-url-possible/#post-5406931)
 * [@rickrob](https://wordpress.org/support/users/rickrob/),
 * Currently, the plugin doesn’t support links. However, it wouldn’t be too difficult
   a feature to implement. So, let me propose how I think it would work and you 
   let me know if my solution would work for your needs:
 * `[mpress_image_refresh attachment="1,32,93,5" link_url="http://www.google.com"
   link_target="_blank"]`
 * This would randomly select from one of the provided attachment image IDs and 
   display one. Because the `link_url` attribute is set, it would wrap the displayed
   image with a link. You could also define the `link_target` attribute to control
   whether the link opens in a new window or not.
 * Thoughts?
 *  Thread Starter [rickrob](https://wordpress.org/support/users/rickrob/)
 * (@rickrob)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/link-url-possible/#post-5406932)
 * Had to edit as I posted my fix at the same time as you. I used a simple
    “a href”
   tag and it works fine.
 * e.g.
    {a href=”[http://WhateverYouWant.com/&#8221](http://WhateverYouWant.com/&#8221);}[
   mpress_image_refresh attachment=”4311, 4318, 4319″]{/a} – replace curlies with
   <>
 * However if you wanted to build it in I’m sure people wouldn’t complain.
    Thanks
   for the quick reply!
 *  [iworldc](https://wordpress.org/support/users/iworldc/)
 * (@iworldc)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/link-url-possible/#post-5407376)
 * Hi, I’m looking for the same, except that each img should have its own url…
    
   Possible?
 *  [Micah Wood](https://wordpress.org/support/users/woodent/)
 * (@woodent)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/link-url-possible/#post-5407377)
 * [@iworldc](https://wordpress.org/support/users/iworldc/),
 * It is absolutely possible to do, but not a feature of the plugin. It would require
   a bit of additional coding to get that to work.
 * Essentially, your images would need to have a URL field added and stored as post
   meta. If the data exists, then there is a filter in the plugin called `mpress_image_refresh-
   image_html` which will allow you to wrap the image with a link and provides enough
   context for fetching the appropriate URL stored in the database.
 * So, this isn’t really something I’d add to the plugin, but the plugin is flexible
   enough to allow you to access any pre-existing data and adjust the output. If
   you are interested in some custom development, I’d be glad to help.
 *  [Domidius](https://wordpress.org/support/users/domidius/)
 * (@domidius)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/link-url-possible/#post-5407389)
 * Greetings.
 * I am afraid that i can not use each images with different url.
    Would you be 
   so kindly to give me an example. Best regards.
 * Daniel 😉
 *  [vmkirin](https://wordpress.org/support/users/vmkirin/)
 * (@vmkirin)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/link-url-possible/#post-5407396)
 * The link_url addition to the shortcode would be perfect.

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

The topic ‘Link URL Possible?’ is closed to new replies.

 * ![](https://ps.w.org/mpress-image-refresh/assets/icon-256x256.png?rev=3200416)
 * [Image Refresh](https://wordpress.org/plugins/mpress-image-refresh/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mpress-image-refresh/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mpress-image-refresh/)
 * [Active Topics](https://wordpress.org/support/plugin/mpress-image-refresh/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mpress-image-refresh/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mpress-image-refresh/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [vmkirin](https://wordpress.org/support/users/vmkirin/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/link-url-possible/#post-5407396)
 * Status: resolved