Hello,
I want to display all my custom post types in the menu. When I did this no one was listed. I had to add the following code to my function.php
//To make category archives display all posts, regardless of post type
function any_ptype_on_cat($request) {
if ( isset($request['category_name']) )
$request['post_type'] = 'any';
return $request;
}
add_filter('request', 'any_ptype_on_cat');
Now the custom post type was listed. I now created a category-customposttype.php and got them listed. But only the first ten are listed. I want to add the following line of code <?php query_posts( 'posts_per_page=-1' ); ?> and nothing is listed anymore. I think it is because WP doesnt see them as the same content. But how can I make it so that I can list them on my way?