the_app_posted_on

Prints HTML with meta information for the current post-date/time and author.

Description

the_app_posted_on(); 

Usage

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

Defined (1)

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

/inc/template-tags.php  
  1. function the_app_posted_on() { 
  2. $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time>'; 
  3. if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) 
  4. $time_string .= '<time class="updated" datetime="%3$s">%4$s</time>'; 
  5.  
  6. $time_string = sprintf( $time_string,  
  7. esc_attr( get_the_date( 'c' ) ),  
  8. esc_html( get_the_date() ),  
  9. esc_attr( get_the_modified_date( 'c' ) ),  
  10. esc_html( get_the_modified_date() ) 
  11. ); 
  12.  
  13. printf( __( '<span class="posted-on">Published %1$s</span><span class="byline"> by %2$s</span>', '' ),  
  14. sprintf( '<a href="%1$s" rel="bookmark">%2$s</a>',  
  15. esc_url( get_permalink() ),  
  16. $time_string 
  17. ),  
  18. sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s">%2$s</a></span>',  
  19. esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),  
  20. esc_html( get_the_author() ) 
  21. );