WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. keysuuh
    Member
    Posted 1 year 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//
    http://pastebin.com/KTakDR6m

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

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

    Thank you SO much!!! Chris ! :)

Topic Closed

This topic has been closed to new replies.

About this Topic