Support › Meta Box Builder › Textarea Line Breaks
I'm trying to combine some array items to create a text area input with line breaks, but I can't get the line breaks to work. It works with wysisyg but I need the values to be read-only and dont want the large wysiwyg editor on my post edit screen.
Heres my code:
Output in admin area:
Something similar happens with \n (the 'n' prints and there's no line break).
How do I get a line break in this situation?
The field textarea does not save the line breaks to the database, you have to add the HTML tag <br> or newline character \n to display the line breaks on the frontend.
The front end is not the issue, I want to display the info with line breaks on the post edit page.
Is there a way to do this? Info is read only so doesn't have to use the text area field.
I've also searched around on Google but have not found a way to import linebreaks to the database. Please use the HTML tags <br> meanwhile.
Thanks but as I said in the op the <br> tags dont work in this case.
I'll try and find another solution.