Title: Update internal link automatically
Last modified: May 12, 2020

---

# Update internal link automatically

 *  [coachview](https://wordpress.org/support/users/coachview/)
 * (@coachview)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/update-internal-link-automatically/)
 * Hi all,
 * I want to create buttons linking tot internal pages with an page builder. I’m
   sure the url’s of the linking pages will change in the near future. Is there 
   a way/plugin to automaticly update these buttons? Now i need to fill in a hardcoded
   url which won’t change. Is there a way to create links to a page ID or something
   like that
    -  This topic was modified 6 years, 1 month ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

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

 *  [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * (@corrinarusso)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/update-internal-link-automatically/#post-12815267)
 * [@coachview](https://wordpress.org/support/users/coachview/)
 * Sure, get the ID of the post / page and use the post_id parameter like this :
   
   [http://your-website.com/index.php?page_id=16](http://your-website.com/index.php?page_id=16)
 * I assume you have “pretty permalinks” enabled in your site ?
    -  This reply was modified 6 years, 1 month ago by [corrinarusso](https://wordpress.org/support/users/corrinarusso/).
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/update-internal-link-automatically/#post-12817128)
 * Page output can be filtered with “the_content” filter hook. Code can search for
   specific links and replace any found with something else. But the code would 
   need to know what it’s looking for and what the replacement would be, so you 
   still end up hardcoding data unless some sort of UI is built to manage what replaces
   what.
 * You might be better off manually doing a global search and replace of all data
   anytime you need to update links. The Better Search and Replace plugin will let
   you do so rather easily.

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

The topic ‘Update internal link automatically’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/update-internal-link-automatically/#post-12817128)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
