Upgrade Wordpress Plugins Remotely
Is there any WP plugin that is able to serialize custom fields data ? My issue is the following: e.g. You want to create "Book information" like post where you want to add e.g. Author + Price custom fields for each post... If you do it standard way WP will create for you 2 rows in table for every custom field you enter. Assume you have 1000 books and every one has 5 custom fields, then its 5000 rows with custom fields data. I would like to have only one row for each post with custom fields data ... so serialized. Is that possible ?
1:Which wordpress theme framework should I use? [closed]
I've done any thing sort of similar. It takes any job to receive the programming right... You have to capture the POST data when it's inserted into the database. You could also query for all custom fields in a post, add them to an array, serialize and insert them, then delete the original entries.. I'd hook the function in on the save_post
action.. The real problem is endeavor to update the records. Unserializing and populating a bunch of created-on-the-fly custom fields would be quite complicated. . I don't see 50,000 rows as prohibitive. Certainly less of a pain than endeavor to did things this way..