Title: Shortcode in &#039;link&#039; field
Last modified: August 21, 2016

---

# Shortcode in 'link' field

 *  [artisanwebsites](https://wordpress.org/support/users/artisanwebsites/)
 * (@artisanwebsites)
 * [12 years ago](https://wordpress.org/support/topic/shortcode-in-link-field/)
 * Hi,
 * Is there a way to get a shortcode working in the link field of the widget?
 * I have my site on a temporary domain, so it looks something like [http://12.23.34.456/mydomain.co.uk/](http://12.23.34.456/mydomain.co.uk/)
 * When i put a page name in the link field it just goes to [http://page-name](http://page-name),
   if i put a slash in front of the page name it goes to [http://12.23.34.456/page-name](http://12.23.34.456/page-name)
 * I’ve tried using add_filter(‘widget_text’, ‘do_shortcode’); but i guess this 
   only works for a text widget. Is there something that would work for the image
   widget so that i don’t have to put the absolute url in every link, thus having
   to change it when i make the site live?
 * Thanks in advance.
 * [https://wordpress.org/plugins/image-widget/](https://wordpress.org/plugins/image-widget/)

The topic ‘Shortcode in 'link' field’ is closed to new replies.

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

## Tags

 * [link](https://wordpress.org/support/topic-tag/link/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 0 replies
 * 1 participant
 * Last reply from: [artisanwebsites](https://wordpress.org/support/users/artisanwebsites/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/shortcode-in-link-field/)
 * Status: not resolved