Use different taxonomies in different custom post types’ permalinks?

I will try to answer the question in detailed but keeping it as short as possible considering you have achieved the basics. Suppose our custom post type one is to be connected to taxonomy one. Let’s call them ‘console'(custom post type) and ‘brands'(taxonomy). You want to achieve: http://example.com/console/brands/sony/ Steps: Register the taxonomy first and attach … Read more

Remove custom post type slug

This is a tricky one, I had exactly the same problem but after a lot of debugging and troubleshooting I managed to fix it. The trick is to add a new rewrite rule: function book_rewrite_rule() { add_rewrite_rule( ‘(.*?)$’, ‘index.php?book=$matches[1]’, ‘top’ ); } add_action( ‘after_theme_setup’, ‘book_rewrite_rule’ );

How does one customize the table of listings for a custom post type?

it’s similar to adding columns to regular posts, except the filter and action are slightly different: manage_edit-{$post_type}_columns and manage_{$post_type}_posts_custom_column function wpse27787_add_video_column( $columns ){ // add a new column to array of columns // can also unset columns here to remove them $columns[‘length’] = __(‘Length’); return $columns; } function wpse27787_manage_video_columns( $column_name, $id ){ // if this … Read more