Home › Forums › WoodMart support forum › Projects page WPML
Projects page WPML
- This topic has 26 replies, 2 voices, and was last updated 2 months, 3 weeks ago by Luke Nielsen.
-
AuthorPosts
-
September 10, 2024 at 4:16 pm #596465
dainius-4606ParticipantHello,
I can’t get Projects page get work with WPML. Default language is Lithuanian: https://onlymedia.lt/musu-projektai/
In English version auto generated version is: https://onlymedia.lt/en/musu-projektai/ but I need to change slug and Title, I have done it WPML string translation but it doesn’t work. I have attached screenshots.Can you help me?
Attachments:
You must be logged in to view attached files.September 11, 2024 at 9:56 am #596625
Luke NielsenKeymasterHello,
In this case, is there any chance that you could give me access to the dashboard area so I can have a look at the settings on your website, please?
Kind Regards
September 11, 2024 at 9:59 am #596629
dainius-4606ParticipantHello, I have attached wp-admin login.
September 12, 2024 at 2:37 pm #597008
Luke NielsenKeymasterHello,
Navigate to WPML -> Settings -> Post Types Translation and change the slug here – https://take.ms/rtCa5S
As for the titles, may I disable 3rd party plugins for testing?
Kind Regards
September 12, 2024 at 4:32 pm #597048
dainius-4606ParticipantHello,
I know these slugs, they are single portfolio and portfolio archive but not portfolio page slug. These slugs are translated.
You can disable 3rd party plugins and make changes in this copy website: http://onlymedia.programming.lt/wp-admin
Logins are the same.September 13, 2024 at 4:42 pm #597311
Luke NielsenKeymasterHello,
1. Here is a video on how to change the slugs for each language- https://take.ms/SRixG
2. Here is a video on how to change the title – https://take.ms/ZCr60
Let me know if you have any questions.
Kind Regards
September 13, 2024 at 5:03 pm #597317
dainius-4606ParticipantHello,
This is single portfolio, these are already changed.
I need to translate archive page title
https://onlymedia.programming.lt/musu-projektai/English have same slug and title, but projects is from correct language: https://onlymedia.programming.lt/en/musu-projektai/
September 16, 2024 at 6:01 pm #597769
Luke NielsenKeymasterHello,
Please check how it works now and let me know.
I await your response.
Kind Regards
September 16, 2024 at 6:05 pm #597773
dainius-4606ParticipantHello,
URL and title is fine now, but here in All filter should show all projects as in Lithuanian language: https://onlymedia.lt/en/our-projects/
September 18, 2024 at 10:44 am #598208
Luke NielsenKeymasterHello,
Sorry for the delay.
It should work well now, please recheck it and let me know.
Kind Regards
September 18, 2024 at 10:49 am #598210
dainius-4606ParticipantHello,
Now projects are shown, title are correct, but URL is wrong, it got back to previous version: https://onlymedia.lt/en/musu-projektai/
September 18, 2024 at 11:18 am #598228
Luke NielsenKeymasterHello,
I suggest you contact the WPML support team as it seems to come from their side.
Let me know the results.
Kind Regards
September 18, 2024 at 3:40 pm #598321
dainius-4606ParticipantI have talked with WPML support, they can change slug, but then All projects not shown. Their answer:
I have checked further, and that is not possible, as is WPML limitation. I have reverted the settings on your live website.
“WPML allows has_archive to be set to a string. However, if the string value is set to something other than rewrite[‘slug’], or the custom post type name slug is not set, the archive slug will not be translatable.”
September 18, 2024 at 3:44 pm #598322September 19, 2024 at 3:43 pm #598621
Luke NielsenKeymasterHello,
Okay, understood. So I will send it to the team so they can contact the WPML as they suggested. But as you can see, there is no solution yet due to their limitation.
Kind Regards
September 19, 2024 at 6:51 pm #598666
dainius-4606ParticipantHow long could it take?
September 20, 2024 at 9:31 am #598751
Luke NielsenKeymasterHello,
Sorry, I cannot tell you exactly as this issue is not related to the theme itself.
Thank you for your time and patience.
Kind Regards
September 20, 2024 at 12:33 pm #598824
dainius-4606ParticipantDear XTEMOS,
I hope this message finds you well.
Despite multiple attempts to resolve the issue with our projects section in the English version of the website, the problem remains unresolved, which has now been ongoing for over a week. This failure to address the bug at https://onlymedia.lt/en/musu-projektai/ is causing significant financial losses for our company.
If this issue is not resolved promptly, we will have no other choice but to seek legal counsel to recover the damages caused by this malfunction on your platform.
We trust that you understand the urgency and hope to see a swift resolution.
Kind regards,
AIVARAS
CEO
ONLY MEDIASeptember 20, 2024 at 3:05 pm #598893
Luke NielsenKeymasterHello,
In general, this issue is related to the WPML, they even confirmed it in their thread – https://take.ms/DCfaU
We have found the below code in the WPML documentation:
add_filter('register_post_type_args', function ( $args, $post_type ) { if ( 'portfolio' === $post_type ) { $args['has_archive'] = true; } return $args; }, 10, 2);
You need to add it to the functions.php file in your child theme, clear the cache and recheck the issue.
Let me know the result.
Kind Regards
September 20, 2024 at 3:21 pm #598896
dainius-4606ParticipantHello,
No, it’s not working. EN slug changed to https://onlymedia.lt/en/project/ as single project or portfolio and got 404.
Tried to translate theme options (portfolio page IDs) but still the same situation.September 20, 2024 at 3:25 pm #598897
Luke NielsenKeymasterHello,
Update access to the admin panel for further investigation – https://take.ms/PTk9z
Kind Regards
September 20, 2024 at 3:31 pm #598898
dainius-4606ParticipantI have added new logins of testing website.
September 20, 2024 at 3:54 pm #598908
Luke NielsenKeymasterHello,
We can see that the code we gave you works, but before that you had to resave the permalinks. And now the page slug is taken from here https://monosnap.com/file/puf8qiMtBe3mr2fYAM1AluaUItIHeR and you can change it through translation https://monosnap.com/file/yhNhfP0vWfQu6Clrie3ZGBJmh2uCYv
As soon as you change the slug, you need to save the permalinks again.
Kind Regards
September 20, 2024 at 4:06 pm #598918
dainius-4606ParticipantSlug now works, but all projects in both languages are not shown in live website. https://onlymedia.lt/musu-projektai/
https://onlymedia.lt/en/our-projects/
Username and password is the same.September 20, 2024 at 5:14 pm #598931
Luke NielsenKeymasterHello,
Please recheck the issue now.
I await your response.
Kind Regards
September 20, 2024 at 6:47 pm #598972
dainius-4606ParticipantThank you for your support. I’m pleased to confirm that all current projects are running smoothly and on track
September 21, 2024 at 10:44 pm #599129
Luke NielsenKeymasterHello,
You are welcome! In case you need any additional help, I’d be more than happy to assist you.
Have a good day!
Kind Regards
-
AuthorPosts
The topic ‘Projects page WPML’ is closed to new replies.
- You must be logged in to create new topics. Login / Register