Settings page above CPT page in admin section

you can use the menu_order filter hook to change the order function custom_menu_order($menu_ord) { if (!$menu_ord) return true; return array(‘settings_page.php’, ‘edit.php?post_type=CTP1′,’edit.php?post_type=CTP2′,’edit.php?post_type=CTP3’); } add_filter(‘custom_menu_order’, ‘custom_menu_order’); add_filter(‘menu_order’, ‘custom_menu_order’);

Custom Post Type sorted by Title

Try… add_filter(“posts_orderby”, “my_orderby_filter”, 10, 2); function my_orderby_filter($orderby, &$query){ global $wpdb; //figure out whether you want to change the order if (get_query_var(“post_type”) == “my_post_type”) { return “$wpdb->posts.post_title ASC”; } return $orderby; }

Control Custom Post Type template from a plugin

I have got it working by the following code: add_action( ‘template_redirect’, ‘ft_job_cpt_template’ ); function ft_job_cpt_template() { global $wp, $wp_query; if ( isset( $wp->query_vars[‘post_type’] ) && $wp->query_vars[‘post_type’] == ‘job’ ) { if ( have_posts() ) { add_filter( ‘the_content’, ‘ft_job_cpt_template_filter’ ); } else { $wp_query->is_404 = true; } } } function ft_job_cpt_template_filter( $content ) { global $wp_query; … Read more

How to show custom (checkbox) field value in admin post list?

i did something similar with some radio buttons and a special taxonomy. i worked almost exclusively from the following 2 tutorials: http://shibashake.com/wordpress-theme/expand-the-wordpress-quick-edit-menu http://scribu.net/wordpress/sortable-taxonomy-columns.html though i was working with a taxonomy, the scribu tutorial actually links to another scribu tutorial on sorting by meta, which is more in-line w/ the OP’s question: http://scribu.net/wordpress/custom-sortable-columns.html