How can I list custom post by custom category?

Using categories isn’t the same as using a custom taxonomy. You should adapt your code to use get_terms and to query for your custom tax: $categories = get_terms(‘article’); foreach($categories as $category) { $args=array( ‘article’=>$category->slug, ‘post_type’ => ‘journal’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1, ‘caller_get_posts’=> 1); }

Display all post types together

For the first part of your question, a pre_get_posts hook is all you would need. This code should work, providing you are using the default “Latest Posts” setting as your front page (Settings > Reading). add_action( ‘pre_get_posts’, ‘se132019_home_page_all_post_types’ ); function se132019_home_page_all_post_types( $query ) { if ( ! is_admin() $query->is_main_query() && $query->is_posts_page() ) { $query->set( ‘post_type’, … Read more