This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic is split from https://wpml.org/forums/topic/all-in-one-seo-sitemap-display-same-slug-based-on-language/
This topic contains 21 replies, has 2 voices.
Last updated by Webest 3 years, 1 month ago.
Assisted by: Dražen Duvnjak.
Author | Posts |
---|---|
September 21, 2021 at 11:01 am #9627301 | |
Webest |
Hi again, I'm afraid the issue is not completely resolved.. there are still three versions of the link (for each langauge), is it possible to leave only one? The second issue, please check the following sitemaps: |
September 21, 2021 at 11:11 am #9627431 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, as mentioned let's continue our conversation on this new ticket. 1) there are still three versions of the link (for each language), is it possible to leave only one? I think is normal and expected, one sitemap is created and lists all language, at least plugin author has not noticed anything strange with it when we reported your last issue to them. If you still have doubts about it, I recommend you to contact your SEO plugin author for further info or feature suggestion. 2) I see the issue with the gallery on the links you shared. How are gallery pages created, using some plugin or? 3) Would you be able to go to the next sandbox website and try to replicate the issue with some dummy simple example? - hidden link Please let me know. Thanks, |
September 22, 2021 at 9:23 am #9635613 | |
Webest |
Hello, Thanks for the answer. 2) These pages are custom post type (galeria), generated by custom php code. 3) I've tried to replicate the issue, unfortunately it's different than on our production website, I was not able to add the custom modification into All in One SEO plugin (from the previous topic), maybe that's the problem.. |
September 22, 2021 at 11:37 am #9637011 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thank you very much for testing it on the sandbox site. I have followed your suggestion and indeed the workaround fix suggested from the previous ticket causes such an issue with your CPT sitemap. I have shared this and contacted our developers from escalated ticket, and will update you when I have some news. Thanks, |
September 24, 2021 at 11:39 am #9654321 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks for the patience. It seems this issue is indeed caused/related to our previous workaround and your CPT code. wpml_permalink was not working for the custom post type, and it seems to be related to how it was registered. Please update to the latest versions of AIOSEO. Please add the previous workaround. Please add next to the $args array for your CPT: 'rewrite' => array('slug' => 'galeria'), (you may need to resave the permalinks and generate new sitemap) Then please go to WPML > Settings > Post Types Translation and set the same slug for translation. I used 'galeria' as the translation but I tried without any and it worked on the sandbox. Please check and let me know how it goes. Thanks, |
September 27, 2021 at 9:12 pm #9671469 | |
Webest |
Hello, I've followed your suggestion but unfortunately on DE sitemamp, links are still described as "pl": hidden link |
September 28, 2021 at 5:47 am #9673145 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks for getting back. Can you please share admin access in the next reply private fields and let me try to check it out for you. Thanks, |
September 28, 2021 at 11:27 am #9676673 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks for getting back to. Yes, FTP would be helpful, try to edit your private reply from above and add FTP also. I am seeing some wired behavior with your website: 1) If I change slug transaltion it is not represented inside the gallery sitemap. Could be some cached page is showing and that is why the fix is not working? 2) Sitemap randomly returns 404. I suspect some other code/plugin is making permalinks changes and causing this issue. Also /sitemap.xml/ doesn't seem to work or show anything. Video: hidden link I suggest you try to reproduce the same issue on our sandbox provided before and/or add the same CPT code on your side to WP 2021 theme and check if the issue still happens when only WPML plugins and AISEO are active. It seems the fix is working fine on the sandbox, so I think something else is causing these issues on your side. Let me know how it goes. Thanks, |
September 29, 2021 at 10:52 am #9685735 | |
Webest |
Hello Drazen, I've added FTP credentials.. Regarding the issue 2) I can't see this problem, maybe it's also connected with the cache.. |
September 29, 2021 at 12:29 pm #9686659 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks for getting back. I have just logged in to check and I still have some issues: I've changed slug transaltion and it's visible on the sitemap Okay, but where have you changed it? Since under WPML settings, they are not changed, so either you are doing it in some other way or as said something is wrong with your environment permalinks/settings. I tried clearing the cache and deactivating Litespeed. Image attached. Please let me know. Maybe it is some other code/plugin causing these issues, I suggest we try with the default theme and only WPML and AISEO. If you can check let me know, otherwise I will provide instructions to migrate a copy to our server. Thanks, |
September 29, 2021 at 2:05 pm #9687619 | |
Webest |
Hello, I've also checked the your sandbox installation and it seems that the sitemap is still wrong, please check it here: hidden link |
September 30, 2021 at 5:48 am #9691979 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks for getting back. You are right, it doesn't work anymore on the sandbox also. Not sure what is going on here, let me check with our developers again so they have a better look. I will update you soon. Thanks, |
September 30, 2021 at 9:24 am #9694047 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, can you please let us know is it OK if we take a copy of the website for further debugging and testing? Can we install Duplicator or All In One Migration plugin on your website? Thanks, |
October 4, 2021 at 8:19 am #9714189 | |
Webest |
Hello Drazen, Yes, you can use Duplicator or AiO Migration plugin and make a copy.. Thanks |
October 4, 2021 at 9:01 am #9714487 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, great, thanks. Let us take a copy and check further. I will update you when I have something more to share. Thanks, |