mh_post_meta

The MH Corporate basic mh post meta function.

Description

mh_post_meta(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function mh_post_meta() { 
  2. echo '<p class="meta post-meta">'; 
  3. $date = sprintf(_x('on %s', 'post date', 'mh-corporate-basic'), '<span class="updated">' . get_the_date() . '</span> '); 
  4. $byline = sprintf(_x('by %s', 'post author', 'mh-corporate-basic'), '<span class="vcard author"><a class="fn" href="' . esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '">' . esc_html(get_the_author()) . '</a></span> '); 
  5. $category = sprintf(_x('in %s', 'post category', 'mh-corporate-basic'), get_the_category_list(', ', '')); 
  6. printf(_x('Posted %1$s %2$s %3$s', 'post meta', 'mh-corporate-basic'), $date, $byline, $category); 
  7. echo ' | '; 
  8. echo '</p>' . "\n";