Support » Plugins » Qtranslate category descriptions quicktags

  • Hello, iv’e just found this solution when you are working with category descriptions in multilanguage with qtranslate.

    When I was tryng to hace my category description as a string, all the languages and quicktags was returned to my string without parsing

    I found solutions with the _e() function but the problem is that _e() echoes the string and I need to sotre it as a value. So I found this function for parsing the qtranslate quicktags without echoing the result… it’s something like this:

    $category = get_category(get_query_var('cat'));
    $catdesc = strip_tags($category->description);
    $catdesc = translate($catdesc, 'qtranslate');
    $catdesc = htmlentities($catdesc, ENT_COMPAT, "UTF-8");
  • The topic ‘Qtranslate category descriptions quicktags’ is closed to new replies.