- This topic has 9 replies, 4 voices, and was last updated 7 years, 11 months ago by Harshad Mane.
-
AuthorPosts
-
April 26, 2016 at 2:57 am #90408Jean-PierreParticipant
I setup a bilingual website (german – serbian).
My problem: I can select a category to be displayed at the homepage. (All categories are translated) After switching the language the translated posts are not displayed. Any idea?
Regards,
jpmApril 26, 2016 at 1:15 pm #90444MaheshKeymaster@j-mouretme-com: Please post in your site url.
Regards,
MaheshApril 26, 2016 at 2:27 pm #90451Jean-PierreParticipantRegards
JpmApril 26, 2016 at 10:55 pm #90485SakinKeymaster@j-mouretme-com: Hello Jpm, this looks more of WPML plugin issue. Can you post in their support forum at https://wpml.org/forums/forum/english-support/
April 29, 2016 at 2:38 am #90658Jean-PierreParticipantI got the problem solved by WPML. Perhaps this could help you to improve your products:
The problem of not being displaying the homepage in the second language is that your theme uses an option to allow you to choose a category to display on the homepage.
When I saved in one language, the other language category is cleared. I’ll attach some pictures for you to see.
On the file “wp-content/themes/catch-box-pro/inc/catchbox-functions.php” on line 1402:
$query->query_vars['category__in'] = $options[ 'front_page_category' ];
add up this line, these three lines:if ( defined( "ICL_LANGUAGE_CODE" ) ) { $options[ 'front_page_category' ] = apply_filters( 'wpml_object_id', $options[ 'front_page_category' ][0], 'category', true ); }
Regards,
jpmApril 29, 2016 at 10:06 am #90665MaheshKeymaster@j-mouretme-com: Thank you for your consideration, we really appreciate it. Yes, please do share the images. Thank you again. Have a nice day.
Regards,
MaheshApril 29, 2016 at 11:10 pm #90711SakinKeymaster@j-mouretme-com: Hello Jpm,
Yes, please share the images and I have contacted WPML compatibility team to check our theme against this issue. We will update soon after we get reply from them.
Thanks a lot.
Regards,
SakinMay 3, 2016 at 11:03 pm #90965Jean-PierreParticipantHello Mahesh, hallo Sakin
here the links to the images:
https://d2salfytceyqoe.cloudfront.net/wp-content/uploads/2016/04/871155-home_category_1.png
BTW: I’m using Kathmandu Pro for a german-french website. There the problem didn’t occur.
Regards,
Jean-PierreMay 9, 2016 at 12:23 pm #91289SakinKeymaster@j-mouretme-com: Can you send me the link from where you get it solve from WPML. As WPML compatibility team is asking how you got that answer.
May 10, 2016 at 4:50 pm #91399Harshad ManeParticipantDear Jean-Pierre,
This is Harshad from WPML Compatibility team.
Sorry to hear about your issue(s). Can you please let me know the WPML Forum thread, So I can get in touch with the Support person who handled your issue(s).
We will replicate the issue and make necessary changes to avoid problems in future.
Regards,
Harshad Mane
WPML Compatibility Project -
AuthorPosts
- The topic ‘Categories on homepage with WPML’ is closed to new replies.