Title: variable for links
Last modified: November 23, 2024

---

# variable for links

 *  [aikiteresa](https://wordpress.org/support/users/aikiteresa/)
 * (@aikiteresa)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/variable-for-links/)
 * What’s the simplest way to create a variable for a link? e.g. I have a link scattered
   throughout my site. I want to be able to change this link globally. Change it
   once, and links throughout site also change.

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

 *  [ovcharoff](https://wordpress.org/support/users/ovcharoff/)
 * (@ovcharoff)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/variable-for-links/#post-18155874)
 * Try using the plugin Better Search Replace. There you can search for the link
   and then replace it everywhere in the website.
 * [https://wordpress.org/plugins/better-search-replace/](https://wordpress.org/plugins/better-search-replace/)
 * Let me know if that works for you!
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/variable-for-links/#post-18155891)
 * An alternative would be to use a shortcode. See: [https://kinsta.com/blog/wordpress-shortcodes/](https://kinsta.com/blog/wordpress-shortcodes/)

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

The topic ‘variable for links’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 2 replies
 * 3 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/variable-for-links/#post-18155891)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
