Change admin area “pagination” posts per page

bbPress Review - slugs

Adding this snippet to the functions.php of your wordpress theme will let you adjust the number of posts display within the admin area. By default wordpress will display 20 posts at a time within the admin area but you can change the number for the variable $per_page to display more or less.

( example screenshot )

function admin_pagination(){
	global $wp_query;
	$per_page = 5;
	$wp_query->query('showposts='. $per_page);
add_action('admin_head', 'admin_pagination');

Comments  Leave a Reply

  1. Hello!
    How can I modify post per page in database?
    I changed to 999 and now I cannot acces to a custom post type of a plugin.

  2. Hi, not sure when this was written, but in the newer versions of WordPress you can change the number of posts/pages to be displayed in the Screen options for posts/pages (top right of the admin panel).
    Hope this is helpful.
    Cheers! 🙂

    1. Actually it’s been very helpful. Thanks a lot! 🙂

      1. You’re welcome, glad it helped! 🙂

        1. Thanks, RESABI! Sometimes an option is staring you right in the face and you don’t see it until someone points it out! DOH!

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!