WordPress.org

Support

Support » Themes and Templates » [Resolved] Theme Options – esc_textarea stays empty when saving

[Resolved] Theme Options – esc_textarea stays empty when saving

  • So I added a text area to my Theme Options, and if I write text inside of it and save it, the textarea is empty like if I hadn’t added anything. I have no idea why it’s doing this.

    <p class="text-option"><?php _e( 'Left Footer Content ', 'jframe' ); ?>
    <input id="jframe_theme_options[leftfooter]" name="jframe_theme_options[leftfooter]" type="checkbox" value="1"
    <?php checked( '1', $options['leftfooter'] ); ?>>
    <textarea id="sample_theme_options[leftfootercontent]"
    class="large-text" cols="50" rows="5" name="sample_theme_options[leftfootercontent]"><?php echo esc_textarea( $options['leftfootercontent'] ); ?></textarea>
    <label><em>Content for left side of the footer.</em></label>
    </p>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Theme Options – esc_textarea stays empty when saving’ is closed to new replies.