mh_impact_lite_featured_image

The MH Impact lite mh impact lite featured image function.

Description

mh_impact_lite_featured_image(); 

Usage

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

Defined (1)

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

/includes/mh-custom-functions.php  
  1. function mh_impact_lite_featured_image() { 
  2. global $page, $post; 
  3. if (has_post_thumbnail() && $page == '1') { 
  4. $caption_text = get_post(get_post_thumbnail_id())->post_excerpt; 
  5. echo "\n" . '<div class="entry-thumbnail">' . "\n"; 
  6. the_post_thumbnail('blog'); 
  7. if ($caption_text) { 
  8. echo '<span class="wp-caption-text">' . esc_attr($caption_text) . '</span>' . "\n"; 
  9. echo '</div>' . "\n";