• Hi,
    I use qTranslate for my website for english and french language.
    But the timeline appear only in one language even if I have created announcement in 2 languages.
    Why ?
    Regards,

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Code Parrots

    (@codeparrots)

    Hi @matdeweb,

    The reason the new languages don’t load is because of the caching that we have set in place. Essentially, the first language is cached and loaded when the second language is queried.

    Take a look at the following knowledgebase article we have set up outlining a fix:
    https://www.wp-timelineexpress.com/documentation/qtranslate-languages-not-loading-properly/

    In short, all you’d need to do is drop the following code snippet into your theme’s functions.php or an MU plugin:

    /**
     * Clear Timeline Express cache on qtranslate pages
     *
     * @author Code Parrots 
     */
    function timeline_qtranslate_bust_cache() {
    
    	global $post;
    
    	if ( ! isset( $post->ID ) || false === get_transient( "timeline-express-query-{$post->ID}" ) ) {
    
    		return;
    
    	}
    
    	delete_transient( "timeline-express-query-{$post->ID}" );
    
    }
    add_action( 'qtranslate_head_add_css', 'timeline_qtranslate_bust_cache' );

    Let us know if that helps out!

    Thread Starter matdeweb

    (@matdeweb)

    Hi,
    No It doesn’t work, the timeline is still in french when the page is in english.
    Regards,

    Plugin Contributor Code Parrots

    (@codeparrots)

    Are you using any other caching plugins on your site? We can double check to confirm that this solution still works.

    Thread Starter matdeweb

    (@matdeweb)

    No, I’ve cheched that and we don’t use any plugin of cache.

    Plugin Contributor Code Parrots

    (@codeparrots)

    I would double check if this is on the home page or another page. You can try duplicating the page by using a plugin such as post cloner and checking if the new page is also experiencing issues.

    I’d be interested in seeing what the issue was so we could fix things up if needed, or if this is just a theme conflict or another plugin conflict.

    Thread Starter matdeweb

    (@matdeweb)

    Hi,
    It’s on a page, not home page.
    I created a new page and added shortcode and it’s still in french when the website is in english.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Timeline express & qTranslate X’ is closed to new replies.