WordPress.org

Support

Support » Plugins and Hacks » Buddypress Xprofile Custom Fields Type » [Resolved] Custom Post Type Multiselector

[Resolved] Custom Post Type Multiselector

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor wpok

    @dabesa

    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 wpok

    @dabesa

    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 Miguel L贸pez

    @atallos

    Yeah, I think you’re right. I’ve added this to version 1.4.9.1.

    Thanks!

    Plugin Contributor wpok

    @dabesa

    Hi Atallos,

    I installed Version 1.4.9.1 but it’s still the same as before, how come?

    Thanks
    http://www.itvc.net

    Plugin Contributor wpok

    @dabesa

    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 Miguel L贸pez

    @atallos

    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 ‘[Resolved] Custom Post Type Multiselector’ is closed to new replies.
Skip to toolbar