Title: Archive Multiple Post Types
Last modified: November 16, 2020

---

# Archive Multiple Post Types

 *  Resolved [marioaguera](https://wordpress.org/support/users/marioaguera/)
 * (@marioaguera)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/archive-multiple-post-types/)
 * Hello,
 * Is it possible to build archives made from two or more custom post types?
    i.
   e. post_type = [array of post types]
 * Many Thanks
    Mario

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Contributor [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/archive-multiple-post-types/#post-13667972)
 * good question.
    Just checked the source and the answer is NO! That’s _crazy_.
 * I’ll now check archive-pro-matic and see if that offers the ability to pass an
   array of post types and get back to you on a plan. Look for an update on this
   topic in 20 minutes or so…
 *  Thread Starter [marioaguera](https://wordpress.org/support/users/marioaguera/)
 * (@marioaguera)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/archive-multiple-post-types/#post-13667976)
 * Wonderful. Thank you so much for checking this.
 *  Plugin Contributor [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/archive-multiple-post-types/#post-13668261)
 * OK, neither the free version nor the pro version support multiple custom post
   types as seen in this demo of the latest version:
    [https://spacedonkey.de/3971/archive-pro-matic-multiple-cpt/](https://spacedonkey.de/3971/archive-pro-matic-multiple-cpt/)
 * This can be added to the [pro version](https://plugins.twinpictures.de/premium-plugins/archive-pro-matic/)
   today, if you want to go pro, and we’ll send you a release candidate that includes
   this feature: if that is an option.
 * Regardless, this is a good feature and it should make its way to the free version
   at some point.
 * Thank you for your feedback!
 *  Thread Starter [marioaguera](https://wordpress.org/support/users/marioaguera/)
 * (@marioaguera)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/archive-multiple-post-types/#post-13668358)
 * Hello,
 * I’m happy to upgrade to pro if it can support this feature.
 * BTW: Not sure if this helps, but I found the following code snippet and managed
   to get the ‘Post’s widget to combine multiple post types in it’s results, by 
   using defining a custom query in functions.php (below) and then setting Query
   ID in Elementor.
 * // Showing multiple post types in Posts Widget
    add_action( ‘elementor/query/
   my_custom_filter’, function( $query ) { // Here we set the query to fetch posts
   with // post type of ‘custom-post-type1’ and ‘custom-post-type2’ $query->set(‘
   post_type’, [ ‘post’, ‘my_custom-post’ ] );
 * If you could let me know when this functionality has been added to the Pro version,
   I will happily purchase it.
 * Once again Many Thanks.
 *  Plugin Contributor [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/archive-multiple-post-types/#post-13670133)
 * Got it working:
    [https://spacedonkey.de/3971/archive-pro-matic-multiple-cpt/](https://spacedonkey.de/3971/archive-pro-matic-multiple-cpt/)
   As you can see 2017 has both cpt’s Let me know should you have any questions.
 *  Thread Starter [marioaguera](https://wordpress.org/support/users/marioaguera/)
 * (@marioaguera)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/archive-multiple-post-types/#post-13670158)
 * Aah, that is wonderful, thank-you 🙂
 * And I assume activating show_post_count=”true” would therefore display (2) beside
   2017, for the multiple cpts example?
 *  Plugin Contributor [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/archive-multiple-post-types/#post-13671602)
 * [yessir](https://spacedonkey.de/3971/archive-pro-matic-multiple-cpt/)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Archive Multiple Post Types’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/anual-archive_8690a8.svg)
 * [Annual Archive](https://wordpress.org/plugins/anual-archive/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/anual-archive/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/anual-archive/)
 * [Active Topics](https://wordpress.org/support/plugin/anual-archive/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/anual-archive/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/anual-archive/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/archive-multiple-post-types/#post-13671602)
 * Status: resolved