Question


I use qtranslate-x plugin for site translation. Works well, but on my custom term's page I see description in all languages.

enter image description here

I use this code to display term information:

$term = $wp_query->queried_object;
echo '<h1>'. $term->name . '</h1>';
echo '<p>' . $term->description . '</p>';
Was it helpful?

Solution

echo term_description( $term->term_id, $taxonomy );
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top