Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

When you develop a site on wordpress you may want to create posts/pages with the same name, something that wordpress does not allow by default.

Use cases:

 example.com/en/contact
 example.com/fr/contact
 example.com/en/support/contact

I am currently using WPML plugin in order to create multilanguage sites and I encountered this limitation in wordpress.

How can I solve this problem? Do you know any tricks or plugins that would allow me to deal with this problem.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

When you develop a site on wordpress you may want to create posts/pages with the same name, something that wordpress does not allow by default.

This is statement is not true. WordPress will allow you to set up pages with the "directory" structure that you specified right out of the box. I was just able to do this on my test installation. I created a page with slug "en" and then created a child page named "taco". Next I created a page named "fr" and added a child to this page named "taco". Both taco pages have the slug of "taco". There may be an issue with the plugin that you are using. Have you tried this without the plugin installed?

share|improve this answer
    
Thanks, you are right - I notified WPML about this, let see what they will reply forum.wpml.org/topic.php?id=3506&replies=3#post-15552 –  sorin May 22 '11 at 8:17
    
It looks that this is a design issue with the WPML plugin because the translated pages are considered to share the same parent. This may seam logical but when combined with the slug verification it will prevent you from using the same slug on translations. I hope that WPML is going to find a solution for this because otherwise it will make sense to create root pages for each language and use just WordPress instead of the plugin. –  sorin May 24 '11 at 5:27
    
No crap! I'm looking at the same thing with WPML and had no clue this was actually possible in core WP! –  rjksn Jun 23 '11 at 13:08
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.