• Resolved roberthilley

    (@roberthilley)


    I have a blog which has approximately 1,000 posts. In the WordPress Dashboard’s Edit Posts page, you can only bulk edit 15 posts and then they paginate. How can I view all 1,000 on the same page?

    For example, I’d like to do a bulk delete of 900 posts … if I want to do this now, I have to delete 15 posts at a time on a total of 75 paginated pages!!! This is very time consuming!

    I tried deleting the paginate_links within the edit.php file but that just removed the ability to paginate. Here is the code I was trying to edit/delete:

    <?php
    $page_links = paginate_links( array(
    ‘base’ => add_query_arg( ‘paged’, ‘%#%’ ),
    ‘format’ => ”,
    ‘prev_text’ => __(‘«’),
    ‘next_text’ => __(‘»’),
    ‘total’ => $wp_query->max_num_pages,
    ‘current’ => $_GET[‘paged’]
    ));

    ?>

    Within this code, there is the ” ‘total’ => $wp_query->max_num_pages,” … if this is the correct code to edit … how do I make it show more than 15 per page???

    So again, my question is as follows: how do I make the Edit Posts page show more than 15 posts per page?

    Any help would be greatly appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter roberthilley

    (@roberthilley)

    Never mind … I figured it out. You need to change the number 15 to whatever number you’d like it to be, i.e. 75 or 2000 in the following file wp-admin/includes/post.php:

    Change from:

    $posts_per_page = get_user_option(‘edit_per_page’);
    if ( empty($posts_per_page) )
    $posts_per_page = 15;
    $posts_per_page = apply_filters(‘edit_posts_per_page’, $posts_per_page);

    Change to:

    $posts_per_page = get_user_option(‘edit_per_page’);
    if ( empty($posts_per_page) )
    $posts_per_page = 2000;
    $posts_per_page = apply_filters(‘edit_posts_per_page’, $posts_per_page);

    Thread Starter roberthilley

    (@roberthilley)

    UPDATE: I was unsuccessful at trying to delete 2000 posts at once … I’d keep it at 500 (max) because of the load on your server.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ADVANCED HELP: How to Remove Pagination on “Edit Posts” Page – Reveal All???’ is closed to new replies.