WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I created a post which is assigned to multiple categories.

Eg: I have a post "My Post", and I put it in "foo" and "bar" categories.
Now my article will have two permalinks, "/foo/my-post" and "/bar/my-post".
Google calls this a duplicate, which it considers to be spam, hence this is not what I want.

How can I use multiple categories but have the same permalink?
I want this only for SEO.

My current permalink structure is /%category%/%post_id%-%postname%.html

share|improve this question
2  
how are you outputting two different permalinks for the same post? this is not default behavior. WordPress generates a single permalink using the category with the lowest ID. – Milo Jul 17 '13 at 6:01
1  
Your article will have just one permalink. – toscho Jul 17 '13 at 6:01
    
but why my article is visible at "/foo/my-post" and "/bar/my-post" ? – NETCreator Hosting - WebDesign Jul 17 '13 at 6:03
    
Google say that if will find same content at two different urls on the same site, it will consider it as duplicate => spam... – NETCreator Hosting - WebDesign Jul 17 '13 at 6:04
1  
okay, but categories foo and bar are visible and shows list of aticles... so category foo links to permalink with foo/ and category bar links to permalink with bar/ – NETCreator Hosting - WebDesign Jul 17 '13 at 6:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.