Support » Plugin: DB Posts per page » Admin page list affected by plugin!

  • johnegg


    Hi there. Great plugin however when its enabled if I go to ‘admin – pages’ I can only see the first 12 (or whatever number I set) pages listed in the backend so i cant edit any pages beyond that. I need to deactivate the plugin in order to edit pages in backend.



Viewing 1 replies (of 1 total)
  • Add the if ! admin to the function and it doesn’t affect the admin pages!

    like this!

    function db_post_per_page_set() {
    	global $wp_query;
    	  if (!is_admin()){
    	if( isset( $_COOKIE['db_posts_per_page'] ) ) {
    		$wp_query->query_vars['posts_per_page'] = $_COOKIE['db_posts_per_page'];

    Happy Coding!

Viewing 1 replies (of 1 total)
  • The topic ‘Admin page list affected by plugin!’ is closed to new replies.