'; $output .= ''; $output .= ''; $output .= ''; return $output; } add_filter('the_password_form', 'bws_password_form'); } // password protected form end // pagination start if ( !function_exists('bws_pagination') ) { function bws_pagination( $pages='', $range=2 ) { $showitems = ($range * 2) + 1; global $paged; // default page to one if not provided if(empty($paged)) $paged = 1; if ($pages == '') { global $wp_query; $pages = $wp_query->max_num_pages; if (!$pages){ $pages = 1; } } if ( 1 != $pages ) { echo ''; // Uncomment this if you want to show [Page 2 of 30] // echo '
[ Page '.$paged.' of '.$pages.' ]
'; } } } // pagination end