• I fixed wpautop issues by using this code.

    // Fix Autop in WordPress
    function better_wpautop($pee) {
    return wpautop($pee, false);
    }

    remove_filter(‘the_content’, ‘wpautop’);
    add_filter(‘the_content’, ‘better_wpautop’, 99);
    add_filter(‘the_content’, ‘shortcode_unautop’, 100);

    However, now Fancier Author Box is causing extra p’s because it might be using wpautop. Any way to write a quick function to have it use “better_wpautop” so I do not have to remove the function? Thanks.

    https://wordpress.org/plugins/fancier-author-box/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter harvoolio

    (@harvoolio)

    If anybody else has the same problem I ended up changing this in ts-fab.php to fix it:

    /* add_filter( ‘the_content’, ‘ts_fab_add_author_box’, 15 ); */
    add_filter( ‘the_content’, ‘ts_fab_add_author_box’, 99 );
    and changing the priority of better_wpautop to 98.

    I am having this issue and don’t understand your directions harvoolio?

    Please tell me exactly where to put what code in to what file! Thanks in advance 🙂

    Here is post that shows the issue I am having because it has three <p> tags which are pretty large.

    http://www.lookamazingnaked.com/perfect-six-pack/

    Also if I put space in the bio between the paragraphs it changes the text of the bottom paragraph. (not shown on post)

    Can you be more specific on what file and where you add each line of code? I have the same problem but don’t quite understand your instructions above.

    See my issue here:

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Extra P Tags throughout Fancier Author Box’ is closed to new replies.