• Resolved amp343

    (@amp343)


    I’m using the Custom Fields Template to manage a bunch of custom fields for a bunch of posts – but I’m running into a problem.

    When I first create the post & set the custom fields through this plugin, everything goes how it should. Post custom fields and their values are written to the DB, and I can retrieve and manipulate them how I want to.

    However, if I were to go back to that same post to edit it again, the values I initially set don’t carry over into the CFT plugin’s module in the post editor. So, essentially, everything appears to be ‘wiped out’ — as if it doesn’t remember what I wrote the first time. And if I go ahead and click “update” without going back and setting the values again, they are erased.

    I should mention I’m using about 4 different templates within the Custom Fields Template plugin itself. Sometimes the editor will “remember” values from whichever template is displayed at first – but if I change to one of the other CFT templates I have, those values are always gone.

    Anyone know of a solution? Or where I should look in the plugin PHP to address this?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • the problem probably has to do that you have the custom fields at the bottom being displayed and that is also being submitted. Since it is the last form it is the definitive one. I would try hiding the custom fields and trying again to see if it works any better.

    Thread Starter amp343

    (@amp343)

    Hey poil –

    That’s a good thought – but it didn’t end up being the problem.

    Apparently, the issue was that the meta_id column in the wp_postmeta table had been altered (by some sort of plugin? I had a ton installed trying to pick the best one for custom field management) so that the primary key and auto-increment had been removed.

    I uninstalled all my custom fields plugins. Then I went into my phpMyAdmin, restored these attributes to the wp_postmeta > meta_id column, and the plugin seems to be working according to plan.

    We’ll see if it stays that way!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Fields Template erases values when updating post’ is closed to new replies.