'Links remain the same in WordPress XML import
I am developing a theme with WordPress Acf. I develop themes in localhost first. Then I upload it to the server. When I send it to the server, the links on the buttons I gave in the local page are gone. Luckily I'm going to manually do it again on the server. By the way, even though I updated the local files to the server by updating the links in the SQL file, it still remains the same. I am using One Click Import plugin for this theme.
So that I can test it again, I take a backup of the site that I have uploaded and updated to the server and open a new domain and test it from there.
But !!!
When the file is imported, all links remain the same. The XML image is below. Here I tried removing the site url extensions and importing them again, but this time no links appear. I request your help in this matter. The XML output is below. Since it's 30,000 lines of code, I'm not writing all of them. I can write if you want. I'm just posting the links.
<wp:postmeta>
<wp:meta_key><![CDATA[menu_2_link]]></wp:meta_key>
<wp:meta_value><![CDATA[a:3:{s:5:"title";s:21:"Server Virtualization";s:3:"url";s:69:"https://asd.com/wordpress/asd-theme/server-virtualization/";s:6:"target";s:0:"";}]]></wp:meta_value>
</wp:postmeta>
<wp:postmeta>
<wp:meta_key><![CDATA[menu_3_link]]></wp:meta_key>
<wp:meta_value><![CDATA[a:3:{s:5:"title";s:17:"Network Solutions";s:3:"url";s:65:"https://asd.com/wordpress/asd-theme/network-solutions/";s:6:"target";s:0:"";}]]></wp:meta_value>
</wp:postmeta>
<![CDATA[a:3:{s:5:"title";s:17:"Network Solutions";s:3:"url";s:65:"https://asd.com/wordpress/asd-theme/network-solutions/";s:6:"target";s:0:"";}]]>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
