Tag Info

Hot answers tagged

1

I think that the most important question here is, Does this functionality add functionality to my theme or to my site? Page templates in general are theme territory and in my opinion should stay in a theme. This does not mean any functionality on which a template depend should be in the theme as well. These meta boxes that you are talking about can either ...


1

Register a menu is really register a menu location, but I think you don't need to register locations so you can avoid the register step. I think what you need is wp_nav_menu( ) function. For example, in the page template: //Get the menu slug stored in page custom meta field //Replace menu_meta_field_name with the correct name of the meta field $menu_slug = ...


1

The reason why your code doesn't work is most likely that you've ordered your metaboxes before, and the that order has been saved into the meta-box-order_page meta value. This overrides the default setup. Here's an example of the meta-box-order_post meta value: a:3:{ s:4:"side"; ...


1

Try adding this in your functions.php file: // Let's stop WordPress re-ordering my categories/taxonomies when I select them function stop_reordering_my_categories($args) { $args['checked_ontop'] = false; return $args; } // Let's initiate it by hooking into the Terms Checklist arguments with our function above ...


1

Maybe they are just disabled? I've already seen a lot of people tripping over this one: On the top right of the edit screen you can see "Screen Options". If you open this section you can enable and disable meta boxes. Maybe yours is deactivated? Source: Screen Options



Only top voted, non community-wiki answers of a minimum length are eligible