Problem:
The user is using a plugin to edit a taxonomy description in a WYSIWYG editor. The result on the frontend is not wrapped in paragraphs(
tags).
Solution:
WordPress, by default, does not support a classic editor for the description of a custom taxonomy term. I think that you are using a plugin that converts the default textarea to a classic editor for the taxonomy description.
The classic editor does not actually save the content with
tags. Themes use WordPress function to convert double return lines into a paragraph using the function wpauto
Toolset shortcode does not use the function to wrap paragraphs in
tags. We will need a custom shortcode that will do that for us. As this is intended for the archive page, we can use WordPress function term_description that do wrap paragraphs into
tags.
We can build a shortcode with custom code in the theme functions.php file:
function term_description_with_paragraphs() { return term_description(); } add_shortcode( 'term_description_with_p', 'term_description_with_paragraphs' );
Then use the shortcode [term_description_with_p] instead of [wpv-taxonomy-description].
Relevant Documentation:
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
This topic is split from https://toolset.com/forums/topic/templates-not-rendering-properly-for-archives/
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - | - | 9:00 – 13:00 |
14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - | - | 14:00 – 18:00 |
Supporter timezone: Africa/Casablanca (GMT+01:00)
This topic contains 2 replies, has 2 voices.
Last updated by 4 years, 6 months ago.
Assisted by: Jamal.