tintix
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Yeah, fixed! 🙂 Seems like it’s an mqtranslate bug.
http://wordpress.org/support/topic/qtranslatemqtranslate-support?replies=2#post-5626815Forum: Plugins
In reply to: [DW Question & Answer] Qtranslate/mQtranslate supportWell, I solved my problem. The untranslated parts were custom taxonomy parts – in this case the question categories. Seems like this is a mqtranslarte bug that prevents correct term translation during AJAX call. I fixed it using this snippet added to my theme’s functions.php
if (defined('DOING_AJAX') && DOING_AJAX) { add_filter('wp_get_object_terms', 'dwqa_question_category_ajax_filter'); } function dwqa_question_category_ajax_filter($terms) { global $q_config; foreach ($terms as $term) { if ($term->taxonomy == 'dwqa-question_category' && isset($q_config['term_name'][$term->name][$q_config['language']])) { $term->name = $q_config['term_name'][$term->name][$q_config['language']]; } } return $terms; }Forum: Plugins
In reply to: [DW Question & Answer] Questions not visible if logged inSolved
Forum: Plugins
In reply to: [DW Question & Answer] Questions not visible if logged inWell, the bug doesn’t appear, if used in newest wordpress version.
Viewing 4 replies - 1 through 4 (of 4 total)