first the problem, then the tries.
The problem is that i get a 404 NOT FOUND error if i visit another page than the first category page. On the cat
Try change the pre_get_posts filter.
function namespace_add_custom_types( $query ) {
if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {
$query->set( 'post_type', array(
'post', 'property'
));
return $query;
}
}
add_filter( 'pre_get_posts', 'namespace_add_custom_types' );
Found this at http://css-tricks.com/snippets/wordpress/make-archives-php-include-custom-post-types/