mh_impact_lite_pagination

The MH Impact lite mh impact lite pagination function.

Description

mh_impact_lite_pagination(); 

Usage

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

Defined (1)

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

/includes/mh-custom-functions.php  
  1. function mh_impact_lite_pagination() { 
  2. global $wp_query; 
  3. $big = 9999; 
  4. $paginate_links = paginate_links(array( 
  5. 'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))),  
  6. 'format' => '?paged=%#%',  
  7. 'current' => max(1, get_query_var('paged')),  
  8. 'prev_next' => true,  
  9. 'prev_text' => __('«', 'mh-impact-lite'),  
  10. 'next_text' => __('»', 'mh-impact-lite'),  
  11. 'total' => $wp_query->max_num_pages 
  12. )); 
  13. if ($paginate_links) { 
  14. echo '<div class="pagination clearfix">'; 
  15. echo $paginate_links; 
  16. echo '</div>';