Hide meta box for everything BUT a certain custom post type

Why not just turn off the default tags capability then register a tags taxonomy specific to the custom post type? http://codex.wordpress.org/Function_Reference/register_taxonomy register_taxonomy( ‘my_custom_post_type_tags’, ‘my_custom_post_type’, array( ‘label’ => __( ‘Tags’ ), ‘rewrite’ => false, ‘hierarchical’ => false, ‘capabilities’ => array( ‘edit_terms’ => ‘manage_categories’ ) ) );

Display an authors post on a single page only when they are logged in

Check if a user is logged in using is_logged_in. If a user is logged in modify the query using pre_get_posts filtering posts by the current author ID. if ( is_user_logged_in() ) : function filter_posts_by_author( $query ) { global $current_user; get_currentuserinfo(); $query->set( ‘author’, $current_user->ID ); } add_action( ‘pre_get_posts’, ‘filter_posts_by_author’ ); // … loop else : echo … Read more

WP_query – Filter by tax_query and meta_query using multiple select

My initial code did not provide default WP_query argument parameters if either Select option was not set – the empty Parameter would filter everything out. To the best of my ability, I applied default parameter values from the initial Post and Terms queries and now the select filter is working. I would be pleased to … Read more

Pagination doesn’t function properly for archive of a custom post type set as the front page

Between my phone and work some errors creeped in, sorry about that. here is my revised answer. Hope this helps in solving your problem. PROBLEM 1 You should not name your template ‘archive-{$post_type}.php’ if it is a page template. This totally goes against the template hierarchy for pages, and that is why your static frontpage … Read more