• Resolved owenpiccirillo

    (@owenpiccirillo)


    There is a visual editor… but I am not seeing the line breaks when spitting out the code for the bio?

    $bio = $custom[“_staff_member_bio”][0];
    if ($bio){ echo ‘Bio:<p>’.$bio.'</p>’; }

    This is on the custom staff page

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Brett Shumaker

    (@brettshumaker)

    Hey @owenpiccirillo
    To get the line breaks, you’ll need to change your code to:

    $bio = $custom["_staff_member_bio"][0];
    if ($bio){ echo 'Bio:<div>' . wpautop( $bio ) . '</div>'; }

    Otherwise you’re just echoing out a plain string inside a paragraph tag and the line breaks aren’t rendered.

    Let me know if this helps. Thanks!

    Thread Starter owenpiccirillo

    (@owenpiccirillo)

    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No p Tags or Line Breaks in Bio?’ is closed to new replies.