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

    (@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 Daniele

    (@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 donmik

    (@atallos)

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

    Thanks!

    Plugin Contributor Daniele

    (@dabesa)

    Hi Atallos,

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

    Thanks
    https://www.itvc.net

    Plugin Contributor Daniele

    (@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 donmik

    (@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 ‘Custom Post Type Multiselector’ is closed to new replies.