There are a few variables that need to be changed in order for you to update to the new link on your WordPress site since you mention that you’ve installed an existing WordPress site that has already been set up.
Try the following steps using the Search Replace DB tool:
- Go and download Interconnect IT’s Database Search & Replace Script here
- Unzip the file and drop the folder in your localhost where your WordPress is installed (the root) and rename the folder to
replace
(screenshot) - Navigate to the new folder you created in your browser (ex:
http://localhost:8888/wordpress/replace
) and you will see the search/replace tool - Enter your old URL in the search for… field and the new URL in the replace with… field, like so:
- Search:
localhost/wordpress
- Replace:
localhost:8888/wordpress
- Search:
You can click the dry run button under actions to see what it will be replacing before you execute the script. Once you’re done be sure to remove the /replace/
folder.