Replace “http://localhost:8888/” by website URL in WordPress

You’ll need to fix the URLs in the database. Although you can do it with MySQL commands, the easiest way I’ve found is with the “Better Search and Replace” plugin. Easy to use, and works.

https://wordpress.org/plugins/better-search-replace/

Of course, backup your database first. But it works quite well.