twentythirteen_entry_meta

Print HTML with meta information for current post: categories, tags, permalink, author, and date.

Description

twentythirteen_entry_meta(); 

Create your own twentythirteen_entry_meta() to override in a child theme.


Usage

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

Defined (1)

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

/functions.php  
  1. function twentythirteen_entry_meta() { 
  2. if ( is_sticky() && is_home() && ! is_paged() ) 
  3. echo '<span class="featured-post">' . esc_html__( 'Sticky', 'twentythirteen' ) . '</span>'; 
  4.  
  5. if ( ! has_post_format( 'link' ) && 'post' == get_post_type() ) 
  6.  
  7. // Translators: used between list items, there is a space after the comma. 
  8. $categories_list = get_the_category_list( __( ', ', 'twentythirteen' ) ); 
  9. if ( $categories_list ) { 
  10. echo '<span class="categories-links">' . $categories_list . '</span>'; 
  11.  
  12. // Translators: used between list items, there is a space after the comma. 
  13. $tag_list = get_the_tag_list( '', __( ', ', 'twentythirteen' ) ); 
  14. if ( $tag_list ) { 
  15. echo '<span class="tags-links">' . $tag_list . '</span>'; 
  16.  
  17. // Post author 
  18. if ( 'post' == get_post_type() ) { 
  19. printf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',  
  20. esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),  
  21. esc_attr( sprintf( __( 'View all posts by %s', 'twentythirteen' ), get_the_author() ) ),  
  22. get_the_author() 
  23. );