Combine all posts into one places

You will need to setup a new query to get posts from another post_type. The post_type parameter will accept an array, so you can just do: $other_posts = new WP_Query([ ‘post_type’ => [ ‘archive’, ‘recent’ ], // or what ever your post_types are. ]); // Then do your loop… Check this documentation for more information. … Read more

List posts of custom post type under category name

Check this: $categories = get_categories( ‘country’ ); foreach ( $categories as $category ) { $posts_array = get_posts ( array ( ‘posts_per_page’ => -1, ‘post_type’ => ‘university’, ‘tax_query’ => array ( array( ‘taxonomy’ => ‘country’, ‘field’ => ‘term_id’, ‘terms’ => $category->term_id, ) ) ) ); var_dump( $posts_array ); } UPDATE: <div class=”container”> <div class=”row”> <ul class=”collapsible” … Read more