Post URL duplication adds numerical value

Asked

Viewed 26 times

0

I imagined that belonging to different categories, these posts, of equal url nomenclature, would be translated as distinct.

Categories:

  • House
  • Hotel

Posts:

  • street to
  • street to

URL generated:

  • www.meu.com.br/casa/rua-a
  • www.meu.com.br/hotel/rua-a-2

I would like to know how to solve this, because I imagine it affects the >SEO<.

What is the solution to define that House and Hotel BELONG the same street to avoid that this value is added numerical 2?

  • Anyone can help ??

1 answer

0

wordpress does not assume the category as a single post key (as it uses Slug [or house-a]). So even if from different categories, he will continue to do so.

You can solve this by creating custom post-types, which then yes they behave differently, in the same way that a post and a page can have the same Slug.

Browser other questions tagged

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