Nonce help
-
Hello
I’m having some problems with nonces and I can’t find a solid answer. If you can help with any of the below questions I would appreciate it.
1. I have a custom post with an added meta box. This meta box has some standard fields. The fields are just input fields BUT ARE NOT IN FORM TAGS. Should I use wp_create_nonce( ) – – OR – – wp_nonce_field( )? Does it really matter?
2. My theme consists of 5 custom posts. In one of them I have a meta box with a nonce field. The nonce is created and used to verify upon saving that post. Works fine. My problem is when I go to update one of the other custom posts it doesn’t work due to that nonce field failing from the other post type? If anyone could explain why I’d be greatful.
3. Do I really need to add a nonce field in each metabox for each custom post if it’s just a clients child theme and not a plugin?
Thanks
- The topic ‘Nonce help’ is closed to new replies.