Importing XML into Wordpress cuts the permalink address [duplicate]

0

I do not know why you're like this.

I have the latest version of XAMPP, and I use wordpress 4.5.2. I have an xml file with all the posts I need to import, but when I import it it cuts the middle of the permalink address.

In XML the tag '' is thus

<link>http://localhost/site/roupas-masculinas/calcas-jeans/desbotados/estilo-cool</link>

<link>http://localhost/site/roupas-masculinas/bermuda-jeans/estampas/estilo-rock</link>

But when I import and look at the post's address, it looks like this

http://localhost/site/roupas-masculinasestilo-cool

http://localhost/site/roupas-masculinasestilo-rock

Because it cuts the middle of the link when I import an xml of posts.

    
asked by anonymous 07.05.2016 / 19:16

1 answer

0

I discovered the problem.

In XML to import, in addition to the "link" field, you must also change the "post_name" field

Then the "link" field looks like this

<link>http://localhost/site/roupas-masculinas/calcas-jeans/desbotados/estilo-cool</link>

And the "post_name" field looks like this:

<post_name>roupas-masculinas/calcas-jeans/desbotados/estilo-cool</post_name>

Now the permalink shows

http://localhost/site/roupas-masculinascalcas-jeansdesbotadosestilo-cool

It takes the whole address, but, takes the "/" from the address.

If anyone knows how to fix this, I appreciate it.

    
09.05.2016 / 06:41