Support » Plugin: Post Types Order » How to limit number of posts?

  • Resolved ArtanisZG

    (@artaniszg)


    Hi,
    Is there a way to limit number of posts showing in “Re-Order” tab? Right now ALL of the posts are showing there, and if you have like 400 posts, its “painful” to reorder.
    For example, it would be good that “Re-order” tab shows lets say 50 latest post. Is that possible?

    http://wordpress.org/extend/plugins/post-types-order/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author nsp-code

    (@nsp-code)

    Hi,
    Unfortunate this feature is not yet available, we are working for this to be included hopefully in the next version.
    Thanks

    ArtanisZG

    (@artaniszg)

    Hi,
    OK, can you make some customization in code to enable that (like option to add number of displayed pages, or something else). I would pay for the effort :)!

    BR,
    M

    pescadito01

    (@pescadito01)

    i think this message is related

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /…/public_html/wp-includes/meta.php on line 563

    i have some 3.232 post

    pescadito01

    (@pescadito01)

    it was!

    for a dirty update, modif post-types-order.php near the end with

    // Query pages.
    $r[‘hierarchical’] = 0;
    $args = array(
    ‘sort_column’ => ‘menu_order’,
    ‘post_type’ => $post_type,
    ‘posts_per_page’ => -1,
    ‘orderby’ => ‘menu_order’,
    ‘order’ => ‘ASC’,
    ‘posts_per_page’ => 100 // mymodif for 100 first post
    );

    anyway thank nsp for sharing this code!!!

    ArtanisZG

    (@artaniszg)

    @pescadito01
    Nice man!! Big thanks!!

    mbzo2006

    (@mbzo2006)

    @pescadito01
    Nice one, thankyou.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to limit number of posts?’ is closed to new replies.