mh_pagination

The MH Corporate lite mh pagination function.

Description

mh_pagination(); 

Usage

  1. if ( !function_exists( 'mh_pagination' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = mh_pagination(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function mh_pagination() { 
  2. global $wp_query; 
  3. $big = 9999; 
  4. echo paginate_links(array('base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))), 'format' => '?paged=%#%', 'current' => max(1, get_query_var('paged')), 'prev_next' => true, 'prev_text' => __('«', 'mhc'), 'next_text' => __('»', 'mhc'), 'total' => $wp_query->max_num_pages));