Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #90408
    Jean-Pierre
    Participant

    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,
    jpm

    #90444
    Mahesh
    Participant

    @j-mouretme-com: Please post in your site url.

    Regards,
    Mahesh

    #90451
    Jean-Pierre
    Participant

    http://zavicaj.ch

    Regards
    Jpm

    #90485
    Sakin
    Keymaster

    @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/

    #90658
    Jean-Pierre
    Participant

    I 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,
    jpm

    #90665
    Mahesh
    Participant

    @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,
    Mahesh

    #90711
    Sakin
    Keymaster

    @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,
    Sakin

    #90965
    Jean-Pierre
    Participant

    Hello Mahesh, hallo Sakin

    here the links to the images:

    https://d2salfytceyqoe.cloudfront.net/wp-content/uploads/2016/04/871155-home_category_1.png

    https://d2salfytceyqoe.cloudfront.net/wp-content/uploads/2016/04/871155-home_category_secondary_language_1.png

    BTW: I’m using Kathmandu Pro for a german-french website. There the problem didn’t occur.

    Regards,
    Jean-Pierre

    #91289
    Sakin
    Keymaster

    @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.

    #91399
    Harshad Mane
    Participant

    Dear 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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Categories on homepage with WPML’ is closed to new replies.