Qtranslate category descriptions quicktags (1 post)

  1. hoolianv
    Posted 3 years ago #

    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");

Topic Closed

This topic has been closed to new replies.

About this Topic