Defining a default page for custom post type

You can kind of fake it before the main query is run with the pre_get_posts action: function wpa84126_single_project_archive( $query ){ if( ! is_admin() && $query->is_main_query() && $query->is_post_type_archive( ‘new_projects’ ) ) $query->set( ‘name’, ‘my-new-project’ ); } add_action( ‘pre_get_posts’, ‘wpa84126_single_project_archive’ ); Make sure to change new_projects to the actual name you’ve registered the post type under. It … Read more

order of date column in custom post type

That’s the only thing there is to do: array manipulation. The filter manage_edit-CPT_columns is fired in class-wp-list-table.php: add_filter( “manage_{$this->screen->id}_columns”, array( &$this, ‘get_columns’ ), 0 ); Which in turn dispatches the function get_columns() in the sub-class class-wp-posts-list-table.php. And, inside it, one filter for taxonomies, and others for post/page/cpt columns. And all of them dealing with array … Read more

Prepend meta_value to permalink of post

In this case it seems like you’ll want to hook into the WordPress rewrite rules. {$permastruct}_rewrite_rules doesn’t have a lot of information, but this filter would allow you modify the array of existing rewrite rules to add in your new rewrite rule for series. For this to work: http://example.com/series/movie_slug/parrent_series_slug/series_slug You’ll need to add in movie_slug, … Read more