lost all the links in WordPress after changing hosting

I need more details to tackle up what problem are you facing, but maybe these steps can help you:

Update your links in WordPress database

  • Go to PhpMyAdmin
  • Find the database of your wordpress page
  • Go to wp_options table
  • Update “siteurl” and “home” with the new url of your website

Update your permalinks

  • Go to “www.yoursite.com/wp-admin”
  • Go to settings > permalinks
  • Save settings