Question

Hey, I'm stuck trying to add a box with settings for all pages (the ones users create/edit). What I'm attempting to do is add 6, 7 check boxes and an input field for all pages that alters the rendering of it; for example: "Display a contact form at the bottom yes/no?".

How do you do this without, of course, editing any Wordpress core files?

Was it helpful?

Solution

In WordPress these boxes are called "meta box" and to add one to your new/edit page screen you can use add_meta_box() function (look at the example at the bottom for the examples), you can also use this class which is nicely documented and does most of the job for you. Or you can use a plugin like Verve Meta Boxes which does all of the job for you and you just add the options you want form its UI.

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top