• Hello,

    I have update my wp, woocommerce and mqtranslate and now category descriptions are showing all languages in front-end and admin also, even there are <!–> tags. Category names are ok.
    Before update I have setup all right, category description with fields for all languages, but now I can not find how to do that. I have searched hours but no luck. Can anyone help me with this please?

    https://wordpress.org/plugins/mqtranslate/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter marcetin

    (@marcetin)

    After examineing I have remove mqTranslate Version 2.7.1.1 and install Version 2.7.1 and it is working now, so it is some bug in new version of mqTranslate.

    Thread Starter marcetin

    (@marcetin)

    But all that I have done on backup with older version of wp, but when update wp old mqTranslate cause an error.

    Thread Starter marcetin

    (@marcetin)

    Does this happened only to me or someone else have this problem to?
    Nobody have solution?

    Thread Starter marcetin

    (@marcetin)

    I still did not find any solution, can any one write me if know or have any idea how to solve this?!

    Dev please help!!!!!

    Thread Starter marcetin

    (@marcetin)

    I am sure __( instead _e( is the problem just for front-end but can not figure out how to solve that 🙁

    Thread Starter marcetin

    (@marcetin)

    So…
    After few days of agony I have solved this by myself.
    Maybe not perfect solution but it works for my woocommerce categories.
    Just put this code in themes functions.php

    if ( ! function_exists( 'woocommerce_taxonomy_archive_description' ) ) {
    	function woocommerce_taxonomy_archive_description() {
    		if ( is_tax( array( 'product_cat', 'product_tag' ) ) && get_query_var( 'paged' ) == 0 ) {
    			$description = wpautop( do_shortcode( _e(term_description()) ) );
    			if ( $description ) {
    				echo '<div class="term-description">' . $description . '</div>';
    			}
    		}
    	}
    }

    this part was crucial _e(term_description())

    This works for me too, thank you marcetin!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Category/WooCommerce category description’ is closed to new replies.