Template files for Custom Post Type and Taxonomy

The way taxonomies work with rewrites, is that they have a ‘slug’. Look at the codex under register_taxonomy, you will see the ‘rewrite’ argument. Supply it with array( ‘slug’ => ‘properties/location’ ) and refresh your permalinks. Otherwise, it’s looking for the following: mysite.com/property_location/office-space Refer to @vancoders answer for the template solution.

category page for custom post type

First, your taxonomy code has a missing comma before $args which is causing a fatal error: register_taxonomy( ‘product_category’, ‘product’, $args ); Enable debugging while working on code to see PHP errors, which would reveal the line number and error. As for your post type, you have a page where you can view all products, which … Read more

Tag page only display 10 posts

The problem is query_posts(). It is stomping on the default query, and killing your pagination. Don’t use query_posts(). Filter $wp_query at pre_get_posts instead: function wpse123674_pre_get_posts( $query ) { // Only modify the main query on the tag archive index if ( $query->is_main_query && $query->is_tag() ) { $query->set( ‘post_type’, array(‘post, cool_tools, tribe_events’) ); } } add_action( … Read more