Creating custom field with drop down on new post page

Instead of defining the default values for custom fields, you should do like Milo says. You should have something like this in your functions.php. I tried to follow what you need, but didn’t test it. <?php // action to add meta boxes add_action( ‘add_meta_boxes’, ‘voodoo_dropdown_metabox’ ); // action on saving post add_action( ‘save_post’, ‘voodoo_dropdown_save’ ); … Read more

Custom Post Type Link from Plugin

Magic here is: ‘show_ui’ => true, ‘show_in_menu’ => ‘plugins.php’, Try this: function restaurant_menu_items() { $labels = array( ‘name’ => __(‘Restaurant Menu Items’, ‘post type general name’), ‘singular_name’ => __(‘Restaurant Menu Item’, ‘post type singular name’), ‘add_new’ => __(‘Add New’, ‘product page’), ‘add_new_item’ => __(‘Add New Menu Item’), ‘edit_item’ => __(‘Edit Menu Item’), ‘new_item’ => __(‘New … Read more