Change admin area “pagination” posts per page

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.

 

 

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

Be Sociable, Share!

Leave a comment