I run a multisite install and I have removed the page attributes meta box from view for my users because I don’t want them to be able to change templates. I would like them to be able to change the page parent though. I need to add a new meta box for pages that adds just the page parent selector back.
Leave a Reply
You must be logged in to post a comment.
Did just that for one of my plugins, recently…
I implement my metaboxes as classes, hence the funny function name.
I removed the menu order field which i originally kept in my metabox. I think it’s a good idea to keep it.
You’ll find the original ‘attributes’ metabox in
wp-admin/includes/meta-boxes.php
, btw., which is a nice library of code to have a look at if you implement custom metaboxes.well thanks to the help of @wyrfel I was able to get this working. I had to edit the code you gave me some, and the code for adding meta boxes since this function is already part of the core. for anyone else looking here is what I finally used (whole thing added to theme’s functions.php file)