Home Forums Plugin Support WP User Frontend (Free Version) Textarea HTML Problems

This topic is: resolved

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  Biffynator 5 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12629

    Biffynator
    Member
    Post count: 1

    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:

    < ?php echo get_post_meta( $post->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?

    #12645

    Tareq Hasan
    Keymaster
    Post count: 2831

    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 ) ); ?>

    #12664

    Biffynator
    Member
    Post count: 1

    Thank You, Tareq. Seems to work fine!

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Textarea HTML Problems’ is closed to new replies.