Support » Plugin: Term Info Widget » Improvement to Description

  • Hi,

    There are several other plugins that allow for descriptions of terms visually written (WYSIWYG). So the description of term can contain “new line” (linebreak). To that end, I submit a proposal for the following developments for your plugin:

    In the templates / terminfo-display.php file, change the following line:

    Line 40:
    <p class="tiw-content"><?php echo $post_terms[0]->description; ?></p>

    Change to:
    <p class="tiw-content"><?php echo nl2br($post_terms[0]->description); ?></p>

    Line 47:
    <p class="tiw-content"><?php echo $term->description; ?></p>

    Change to:
    <p class="tiw-content"><?php echo nl2br($term->description); ?></p>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Improvement to Description’ is closed to new replies.