This topic contains 4 reply and 2 voices, and was last updated by rich-art 6 years, 1 month ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
September 14, 2013 at 3:30 pm 8142
rich-art Hi, i've an Texterea Field with the option "Normal" selected. When i type a text with enters (line spaces). The enters don't show up in my browser. It's transformed in one long text without spaces. I don't want to use Rich- or TinyRich-textarea because it break my single.php when someone paste a text from there texteditor. Do you know an solution? Thanks.
October 9, 2013 at 12:23 am 8852
rich-art rich-art

Hello, i still have this “enter” problem. Can anybody help?

Thanks

October 9, 2013 at 1:01 am 8853
rich-art rich-art

What i found was. When i’m using “Teeny Rich textarea”-option then the enters are working. Is there a way to disable certain buttons in the texteditor-toolbar? I don’t want my visitors to put links and quotes in theire posts.

October 10, 2013 at 12:03 am 8887
Tareq Hasan Tareq Hasan

When you are printing the value, you need to use something like this: <?php echo nl2br( get_post_meta( $post->ID, 'your_meta_key', true ) ); ?>. The nl2br() function will convert the new lines to html line breaks.

You can remove certain buttons, but that will require editing the plugin, which is not recommended.

October 11, 2013 at 11:45 pm 8942
rich-art rich-art

Hi Tareq, Thanks! This is where i was looking for. Super!

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