Filter by custom field in custom post type on admin page

And for displaying result for Filter then try this code add_filter( ‘parse_query’, ‘prefix_parse_filter’ ); function prefix_parse_filter($query) { global $pagenow; $current_page = isset( $_GET[‘post_type’] ) ? $_GET[‘post_type’] : ”; if ( is_admin() && ‘competition’ == $current_page && ‘edit.php’ == $pagenow && isset( $_GET[‘competition-name’] ) && $_GET[‘competition-name’] != ” ) { $competition_name = $_GET[‘competition-name’]; $query->query_vars[‘meta_key’] = ‘competition_name’; … Read more

How do I change the author of a custom post type?

in Custom Post Type register arguments array use this ‘supports’ => array(‘title’, ‘editor’, ‘thumbnail’, ‘comments’, ‘author’), This will activate author box on the edit screen. After registering author to cpt you need to activate author from edit screen option ( top of the edit screen where you can enable/disable all metabox ) to display authorbox … Read more

Custom Post Type Next/Previous Link?

If you need next/previous links for single posts, there is the built in next_post_link function and matching previous_post_link, both of which should probably be used within the loop. For archives, use next_posts_link and previous_posts_link. All of these will work fine with custom post types.

Marking future dated post as published

Awesome combining both the answers from Mike and Jan I came up with this which works only on the post type in question. We don’t need the conditional of show because the ‘future_show’ hook only grabs the post type of show and updates that. <?php function setup_future_hook() { // Replace native future_post function with replacement … Read more