WordPress.org

Ready to get started?Download WordPress

Forums

Post Types Order
[resolved] How to limit number of posts? (7 posts)

  1. ArtanisZG
    Member
    Posted 10 months ago #

    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/

  2. nsp-code
    Member
    Plugin Author

    Posted 10 months ago #

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

  3. ArtanisZG
    Member
    Posted 10 months ago #

    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

  4. pescadito01
    Member
    Posted 10 months ago #

    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

  5. pescadito01
    Member
    Posted 10 months ago #

    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!!!

  6. ArtanisZG
    Member
    Posted 10 months ago #

    @pescadito01
    Nice man!! Big thanks!!

  7. mbzo2006
    Member
    Posted 10 months ago #

    @pescadito01
    Nice one, thankyou.

Reply

You must log in to post.

About this Plugin

About this Topic