Reported for: WPML Multilingual CMS 3.3.6

Resolved in: 3.3.7


Posts that share the same title, generate the same URL instead of adding the -2 or -3 suffix to their permalink. As a result, the second and third posts with the same title are created with the same slug and are not accessible on the front-end.

For example, if you create three posts, all titled Hello World, they will all have a slug of hello-world.


You need to go to:
and change the row 111 from:

	protected function get_save_post_lang( $post_id, $sitepress ) {


	public function get_save_post_lang( $post_id, $sitepress ) {

Then you need to go to:
and add the following after the row 68:

$post_language       = $post_language
	? $post_language : $this->sitepress->post_translations()->get_save_post_lang( $post_id, $this->sitepress );

One Response to “Issue with posts featuring the same title”