Multisite, display a custom message type on another blog

I have a multisite facility. My "main" website has custom publication types.

I have created another blog in my multisite in order to translate / create a Spanish version of the site.

I want to extract custom items from the main site and post them on the Spanish site. I've watched switch_to_blog () and implemented it here:

https://100.26.44.193.xip.io/espanol/

This breaks my permalinks, hence the 404 error by clicking on the price of the equipment. I can understand the rest if anyone has any ideas about the 404 error.

Do not send messages about translation solutions / plugins. I have already decided, for various reasons, to create a separate site.

I would like to create a custom function in functions.php that handles this for me. I do not know where to start. What would it look like and what would I need to hang up on?