merge multiple custom post types in a single archive template

I have multiple custom post types, viz., research, documents, booklets.
I have a single archive template for each of them , archive-research.php, archive-documents.php, archive-booklets.php respectively.

I need another template where I display posts from all these CPTs.

For a single CPT, I used the following code:

query_posts( array(
‘post_type’ => ‘post_type_name_here’,
‘posts_per_page’ => 4,
‘paged’=>$paged
) );

Is there any way to merge theme?

Read more here:: merge multiple custom post types in a single archive template

Leave a Reply

Your email address will not be published. Required fields are marked *