[resolved] Custom Post Type Meta Box Field won't save it's data? (3 posts)

  1. keysuuh
    Posted 3 years ago #

    I recently added an Event Post type that has multiple Custom Meta input fields. I tried adding a textarea to the meta box and it shows up perfectly fine. BUT, when I save the post after filling in the textarea box, the data from ONLY the textarea disappears.

    I'd have to continuously type in the information all over again after saving or making changes..

    What can I do to fix this?

    Here is a large portion of the events post type//

  2. textareas do not have a value attribute. Change the output of that field to:

    $ret .=
            <label class="events">Information: </label>
             <textarea name="event_info" rows="5" cols="65" class="event-info">'.get_event_field( "event_info" ).' </textarea>
  3. keysuuh
    Posted 3 years ago #

    Thank you SO much!!! Chris ! :)

Topic Closed

This topic has been closed to new replies.

About this Topic