How to add a select menu to this metabox code?

Basically you need to add the html of the select dropdown at your function inventory_information() which is the function that actually displays the metabox: // The Event Location Metabox function inventory_information() { global $post; // Noncename needed to verify where the data originated echo ‘<input type=”hidden” name=”inventorymeta_noncename” id=”inventorymeta_noncename” value=”‘ . wp_create_nonce( plugin_basename(__FILE__) ) . ‘” … Read more

WordPress metabox file upload in custom post [duplicate]

For WordPress metabox file upload in custom post. please refer Below link http://code.tutsplus.com/articles/attaching-files-to-your-posts-using-wordpress-custom-meta-boxes-part-1–wp-22291 or you can use following plugins https://wordpress.org/plugins/simple-fields/ http://www.advancedcustomfields.com/ both plugin best for custom field . you can also create reapeatable fields

Multiple post types in archives (filter?)

Try this: function sw_custom_post_type_includes($query) { $post_types = array(‘post’,’custom1′,’custom2′,’custom3′); if ( ! is_archive() && ! in_array( get_post_type(), $post_types ) ) return $query; $query->set( ‘post_type’, $post_types ); return $query; } add_filter(‘pre_get_posts’, ‘sw_custom_post_type_includes’);