mh_newsdesk_lite_post_meta

The MH Newsdesk lite mh newsdesk lite post meta function.

Description

mh_newsdesk_lite_post_meta(); 

Usage

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

Defined (1)

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

/includes/mh-custom-functions.php  
  1. function mh_newsdesk_lite_post_meta() { 
  2. echo '<p class="entry-meta">' . "\n"; 
  3. if (has_category() && !is_single()) { 
  4. echo '<span class="entry-meta-cats">' . get_the_category_list(', ', '') . '</span>' . "\n"; 
  5. if (is_single()) { 
  6. echo '<span class="entry-meta-author vcard author">' . sprintf(_x('Posted By: %s', 'post author', 'mh-newsdesk-lite'), '<a class="fn" href="' . esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '">' . esc_html(get_the_author()) . '</a>') . '</span>' . "\n"; 
  7. echo '<span class="entry-meta-date updated">' . get_the_date() . '</span>' . "\n"; 
  8. echo '</p>' . "\n";