WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Data not saved for Custom Write Panels (2 posts)

  1. blogjunkie
    Member
    Posted 4 years ago #

    I followed the excellent WeFunction tutorial on custom write panels (http://wefunction.com/2009/10/revisited-creating-custom-write-panels-in-wordpress/).

    I modified the code and placed it in my functions.php instead of a separate plugin. I also repeated the code (with customizations) for 2 post types - 'product' and 'post'. The code works for the 'product' post type, but the data is not being saved on 'post' types.

    Can someone look it over and help me figure out the problem? The code is below:

    [Code moderated as per the Forum Rules. Please use the pastebin]

  2. blogjunkie
    Member
    Posted 4 years ago #

    Sorry about pasting the full code - pastebin is having issues.

    I figured it out - I was using the same meta key for both my write panels, so they were not being saved properly.

Topic Closed

This topic has been closed to new replies.

About this Topic