This topic contains 2 reply and 2 voices, and was last updated by Biffynator 5 years, 12 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
November 21, 2013 at 3:53 pm 12629
Biffynator Hello, I have a problem with the frontend output of textareas (meta_keys). I`ve already tried to change the field type to rich and teeny, but it makes no difference. I used: ID, 'eventinfo', true ); ?> for displaying the contents of the field in the template, but no matter what I put in the field while creating the post, in the frontend, all breaks and tags are removed. Do you have any Idea?
November 21, 2013 at 11:36 pm 12645
Tareq Hasan Tareq Hasan

May be the user is posting, has no permission for inserting unrestricted html. Either you can give that permission or use like this <?php echo nl2br( get_post_meta( $post->ID, ‘eventinfo’, true ) ); ?>

November 22, 2013 at 2:15 pm 12664
Biffynator Biffynator

Thank You, Tareq. Seems to work fine!

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