WordPress.org

Ready to get started?Download WordPress

Forums

Fancier Author Box by ThematoSoup
[resolved] Can you display paragraph breaks? (3 posts)

  1. mellymel
    Member
    Posted 2 years ago #

    One of my authors uses a two paragraph format for his bio. Though the paragraph break displays fine on the backend, the two are displayed as one long paragraph on the front end. Any help you can provide would be great.

    http://wordpress.org/extend/plugins/fancier-author-box/

  2. Slobodan Manic
    Member
    Plugin Author

    Posted 2 years ago #

    mellymel,

    Can you edit line 60 of includes/ts-fab-construct-tabs.php, that currently looks like this:

    <div class="ts-fab-content">' . $author->user_description . '</div>

    So it's like this:

    <div class="ts-fab-content">' . wpautop( $author->user_description ) . '</div>

    That will use a WordPress filter function that adds paragraphs automatically, the same one that adds them to post content.

    Please let me know if that helps.

  3. mellymel
    Member
    Posted 2 years ago #

    Perfect. Changing the code fixed my issue. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic