Support » Plugins and Hacks » Buddypress Xprofile Custom Fields Type » [Resolved] Custom Post Type Multiselector
3 years, 10 months ago
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?
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));
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 ));
Yeah, I think you’re right. I’ve added this to version 126.96.36.199.
3 years, 9 months ago
I installed Version 188.8.131.52 but it’s still the same as before, how come?
OK I see, you changed only the instance in:
but actually also the others recurrence has to be updated.
You’re absolutely right, I don’t know what I was thinking.
It’s solved now in version 184.108.40.206.