Can’t get meta values to save

Figured it out: There was a space in the field ID, and the $_POST key would collapse it. So the ID’s weren’t matching up in the foreach loop in my save function. I solved this with a sanitizing function on the IDs for my meta fields. I was further confused because my admin notices that … Read more

Displaying a Metabox linked to post settings for all users

It’s hard to give a precise answer without seeing the metabox code itself and how it works, but most likely you’d want to change the current_user_can function to look for the read capability. All users — contributors, editors, regular users — have this capability.

Saving metabox content not working

The main problem is you’re not echoing names of your fields. Like <input type=”text” name=”<? ‘jugador_’ . $contador ?>” should be <input type=”text” name=”<? echo ‘jugador_’ . $contador ?>” Still, I have a better suggestion. You can use arrays in your form submission. So your metabox callback function should look like this: function mock_metabox() { … Read more