WordPress.org

Ready to get started?Download WordPress

Forums

Saving custom meta data (3 posts)

  1. Steve
    Member
    Posted 3 years ago #

    I've got a custom meta box on my Edit/Add Post page. When the users click on Save or Publish then the contents of that box are transferred as part of the post data.

    However when Autosave fires then the contents aren't transferred which means that if a user changes the contents in my meta data box and relies on Autosave to save it then his changes are lost.

    Is this either :

    1) Me doing something wrong
    2) A huge bug in WordPress
    3) A defect in WordPress

    ?

  2. Ken
    Member
    Posted 2 years ago #

    You doing something wrong. Meta data is specifically not included in the autosave call.

  3. Steve
    Member
    Posted 2 years ago #

    But why isn't meta data saved during an autosave? its part of the post and it would seem logical to assume that if autosave fires that it saves meta data too.

Topic Closed

This topic has been closed to new replies.

About this Topic