Title: Loading any custom post type
Last modified: August 21, 2016

---

# Loading any custom post type

 *  Resolved [msalsas](https://wordpress.org/support/users/msalsas/)
 * (@msalsas)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/loading-any-custom-post-type/)
 * Hello, I’d want to show the newer posts in the slider. The problem is that I’m
   only able to show one custom post type, but not ANY custom post type. Any way
   to achieve it?
 * [http://wordpress.org/plugins/promotion-slider/](http://wordpress.org/plugins/promotion-slider/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [msalsas](https://wordpress.org/support/users/msalsas/)
 * (@msalsas)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/loading-any-custom-post-type/#post-4538140)
 * Well, I,ve achieved it by replacing the index.php 341 line with:
 *  $query = array(‘numberposts’ => $numberposts, ‘post_type’ => array(‘news’,’entrevistas’));
 * where ‘news’ and ‘entrevistas’ are the custom post types that I want to show.
   I know it’s not the best way to go, but it solves my problem. It would be good
   an improvement of the plugin with this functionality.

Viewing 1 replies (of 1 total)

The topic ‘Loading any custom post type’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/promotion-slider.svg)
 * [Promotion Slider](https://wordpress.org/plugins/promotion-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/promotion-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/promotion-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/promotion-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/promotion-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/promotion-slider/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [msalsas](https://wordpress.org/support/users/msalsas/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/loading-any-custom-post-type/#post-4538140)
 * Status: resolved