This topic contains 2 reply and 2 voices, and was last updated by ritalinaaa 5 years, 9 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
February 24, 2014 at 6:17 am 15772
ritalinaaa Hello How can I echo each line separetely? Everytime someone write something like: "first line second line third line" I get: "first line second line third line" How can I solve this? I can't allow users to user WYSIWYG, all I need is to use the simple textarea and that the output have each line as a new paragraph.
February 24, 2014 at 2:20 pm 15781
Tareq Hasan Tareq Hasan

In that case, you’ve to output those fields manually with the nl2br function. May be like <?php echo nl2br( get_post_meta( $post->ID, 'meta_key', true ) ); ?>

February 24, 2014 at 5:56 pm 15783
ritalinaaa ritalinaaa

Isn’t there a way to output <li> or <p> instead of <br>?

Because if I only get <br> I won’t be able to format the text the way I need.

Viewing 2 Posts - 1 through 2 (of 2 total)