• Resolved kmedspun

    (@kmedspun)


    Hi!

    First of all, thank you for this plugin, it’s an absolute life saver!

    This might be a stupid question, but if I make a shortcode for example for user description:
    the_field('description', 'user_{user_id}');
    I get the content from description field. However, this field might contain line breaks (\r\n in DB), and I would like to replace them with <br>.
    the_field() seems to strip those original line breaks off, so I’m a bit unsure how to proceed from here.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Keep or convert line breaks from DB’ is closed to new replies.