Score:0

Drupal 7 taxonomy term fields not handling content filters

au flag

Image Resize Filter doesn't work with taxonomy term description. Resizing works fine in nodes and blocks, but not in views for taxonomy term.

I'm loading term in my view template. And render its description(also tried custom) field.

$term = taxonomy_term_load($term_id);
print render($term->description);

I've tried to render with field_get_items and field_view_field.

Then i've figured out that html content filter doesn't work with taxonomy terms fields either.

Does anyone know how to apply content filters to taxonomy term fields(include description)?

Drupal core 7.5/7.81

Thanks for the replies.

Score:0
au flag

The solution is to use check_markup function. So, in my case, it was print check_markup($current->description, 'filtered_html'); to output textfield with content filters.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.