Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi all, this link might be helpful.

    Specifically this filter, although I removed the if statement to make custom post types show up in taxonomies as well as the front page.

    add_filter( 'pre_get_posts', 'my_get_posts' );
    
    function my_get_posts( $query ) {
        if ( is_home() && false == $query->query_vars['suppress_filters'] )
            $query->set( 'post_type', array( 'post', 'page', 'album', 'movie', 'quote', 'attachment' ) );
    
        return $query;
    }

Viewing 1 replies (of 1 total)