0
votes

I've created some custom fields to make it easier to add specific list items to a section in wordpress then I deleted the post and the custom fields disappear.

Does anybody knows how to keep a custom field after deleting the original post where they where created?

1
I think you can't get the custom field without the post id and once a post is deleted then you just lost the post id. - The Alpha
Hi Sheikh, that's what I'm thinking too but maybe someone out there knows a trick hehe =P... thanks for the response - MrHOG
May be you can use option instead. - The Alpha
I'll look into that function... but for now if no other answer comes I'll just keep a post with the custom fields and use another option for adding specific list items to posts on my next website... again thanks for the response Sheikh =] - MrHOG

1 Answers

0
votes

you should use an custom meta box.
In this you can specify your values so each post can access the values:
http://codex.wordpress.org/Function_Reference/add_meta_box