/ Published in: PHP
add this to functions.php and you won't have to mess with the index page.
Expand |
Embed | Plain Text
add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() && false == $query->query_vars['suppress_filters'] ) return $query; }
Comments
Subscribe to comments
You need to login to post a comment.

'albums' in this example is a custom post type.
It's intermediately easy to add custom post types through the functions.php but I've had better luck not causing issues with a Custom Post Type UI Plugin