mh_loop

The MH Purity lite mh loop function.

Description

mh_loop(); 

Usage

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

Defined (1)

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

/includes/mh-functions.php  
  1. function mh_loop() { 
  2. if (have_posts()) { 
  3. while (have_posts()) : the_post(); 
  4. get_template_part('loop', get_post_format()); 
  5. endwhile; 
  6. } else { 
  7. get_template_part('content', 'none');