WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Theme Options - esc_textarea stays empty when saving (2 posts)

  1. jstudios
    Member
    Posted 1 year ago #

    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>
  2. jstudios
    Member
    Posted 1 year ago #

    Never mind, I forgot to change the word "sample" to the correct term.

Topic Closed

This topic has been closed to new replies.

About this Topic