Title: Custom Post Type Multiselector
Last modified: August 20, 2016

---

# Custom Post Type Multiselector

 *  ResolvedPlugin Contributor [Daniele](https://wordpress.org/support/users/dabesa/)
 * (@dabesa)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-multiselector/)
 * Hi folks,
    This plugin is great and the Custom Post Type Multiselector is a really
   great option!
 * But, when I create a field and I choose my custom post type, in the edit profile
   page I see only a list of 10 custom post entries.
    How can I change to display
   all the entries I have?
 * [http://wordpress.org/extend/plugins/buddypress-xprofile-custom-fields-type/](http://wordpress.org/extend/plugins/buddypress-xprofile-custom-fields-type/)

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

 *  Plugin Contributor [Daniele](https://wordpress.org/support/users/dabesa/)
 * (@dabesa)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-multiselector/#post-3421152)
 * Looks like this code returns only 10 posts:
 *     ```
       // Get the posts of custom post type.
       $loop = new WP_Query(array('post_type' => $custom_post_type));
       ```
   
 * Thanks
 *  Plugin Contributor [Daniele](https://wordpress.org/support/users/dabesa/)
 * (@dabesa)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-multiselector/#post-3421172)
 * Let me answer myself 🙂
    WP_Query returns a posts_per_page items.
 * So I changed with this:
 * $loop = new WP_Query(array(‘posts_per_page’ => -1, ‘post_type’ => $custom_post_type,‘
   order_by’ => ‘title’, ‘order’ => ASC ));
 *  Plugin Author [donmik](https://wordpress.org/support/users/atallos/)
 * (@atallos)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-multiselector/#post-3421174)
 * Yeah, I think you’re right. I’ve added this to version 1.4.9.1.
 * Thanks!
 *  Plugin Contributor [Daniele](https://wordpress.org/support/users/dabesa/)
 * (@dabesa)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-post-type-multiselector/#post-3421396)
 * Hi Atallos,
 * I installed Version 1.4.9.1 but it’s still the same as before, how come?
 * Thanks
    [http://www.itvc.net](http://www.itvc.net)
 *  Plugin Contributor [Daniele](https://wordpress.org/support/users/dabesa/)
 * (@dabesa)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-post-type-multiselector/#post-3421397)
 * OK I see, you changed only the instance in:
 * `case 'select_custom_post_type':`
 * but actually also the others recurrence has to be updated.
 *  Plugin Author [donmik](https://wordpress.org/support/users/atallos/)
 * (@atallos)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-post-type-multiselector/#post-3421398)
 * You’re absolutely right, I don’t know what I was thinking.
 * It’s solved now in version 1.4.9.2.
 * Sorry!

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

The topic ‘Custom Post Type Multiselector’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-xprofile-custom-fields-
   type.svg)
 * [Buddypress Xprofile Custom Fields Type](https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [donmik](https://wordpress.org/support/users/atallos/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/custom-post-type-multiselector/#post-3421398)
 * Status: resolved