0

I have rich text metabox.When I echo the out put it shows html tags.If I write <h1>Hi</h1> in editor metabox it ouput the same.My works so far

     <?php
     $valueeee2=  get_post_meta($_GET['post'], 'SMTH_METANAME_VALUE' , true ) ;
     wp_editor( htmlspecialchars_decode($valueeee2), 'mettaabox_ID_stylee', $settings =     array('textarea_name'=>'MyInputNAME',) );
     ?>

To display

$content=get_post_meta($post->ID, 'SMTH_METANAME_VALUE', true);
echo $content;
1
  • What is the question here? Commented Oct 19, 2014 at 3:32

1 Answer 1

1

Try echo html_entity_decode($ccontent) .

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.