Support Forums

tribe events calendar links and qtranslate plugin

  • Posts: 57 Topics: 27 Answers: 1
    | Permalink


    I noticed 1 issue with qtranslate plugin.
    Links in tribe events calendar don’t get converted to current language.

    On normal posts when I activate qtranslate, and visit language or all links inside loop or permalinks outside get converted to language specific links so if I’m visiting english version of site all links have /eng/link.

    Unfortunately with calendar it doesn’t work like this. Calendar links retain normal links and don’t append language specific url.

    How do I fix this?
    Is qtranslate compatible?

    Posts: 3436 Topics: 13 Answers: 199
    | Permalink
    Correct Answer

    Hi Sandro,

    Thanks for getting in touch. You’re not the only user having difficulty integrating qtranslate with The Events Calendar. We’re working to fix this in an upcoming release. I appreciate you sending in the details of your issue to give us more info to work with.

    Thanks for your patience. We hope to have the plugins cooperating smoothly soon.


    Posts: 57 Topics: 27 Answers: 1
    | Permalink

    Hi, I actually resolved this problem. It is not tribe events problem per se, but that qtranslate filter doesn’t work with custom post type urls. To fix it just include this functions.php file of the theme: add_filter(‘post_type_link’, ‘qtrans_convertURL’);

    Posts: 3436 Topics: 13 Answers: 199
    | Permalink

    Great! Glad that got resolved.

    Posts: 14 Topics: 5
    | Permalink

    This may also help:

    // Translate view navigation links
    add_filter(‘tribe_get_day_link’, ‘qtrans_convertURL’); // Day links
    add_filter(‘tribe_get_last_week_permalink’, ‘qtrans_convertURL’); // Last Week
    add_filter(‘tribe_get_next_week_permalink’, ‘qtrans_convertURL’); // Next Week
    add_filter(‘tribe_get_previous_month_link’, ‘qtrans_convertURL’); // Last Month
    add_filter(‘tribe_get_next_month_link’, ‘qtrans_convertURL’); // Next Month

    Posts: 10167 Topics: 3
    | Permalink

    Thanks Jordi! We really love and appreciate it when people share solutions. It’s super helpful for others facing similar issues.

    I’m going to go ahead and close out this ticket because it looks like it’s been resolved, but please feel free to start a new thread if something else pops up. 🙂


The topic ‘tribe events calendar links and qtranslate plugin’ is closed to new replies.