Import XML into Wordpress cuts the permalink address

Asked

Viewed 40 times

0

I don’t know why you’re like this.

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

In XML the tag 'is like this

<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 address of the post, this so

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

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

Because it cuts the middle part of the link when importing an xml from posts.

1 answer

0

I found the problem.

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

So the "link" field looks like this

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

And the field "post_name" was like this:

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

Now the permalink shows so

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

He takes the whole address, but he takes the "/" out of the address.

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.