catchresponsive_tag_category

Prints HTML with meta information for the categories, tags.

Description

catchresponsive_tag_category(); 

Usage

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

Defined (1)

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

/inc/catchresponsive-core.php  
  1. function catchresponsive_tag_category() { 
  2. echo '<p class="entry-meta">'; 
  3.  
  4. if ( 'post' == get_post_type() ) { 
  5. $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'catch-responsive' ) ); 
  6. if ( $categories_list && catchresponsive_categorized_blog() ) { 
  7. printf( '<span class="cat-links">%1$s%2$s</span>',  
  8. sprintf( _x( '<span class="screen-reader-text">Categories</span>', 'Used before category names.', 'catch-responsive' ) ),  
  9. $categories_list 
  10. ); 
  11.  
  12. $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'catch-responsive' ) ); 
  13. if ( $tags_list ) { 
  14. printf( '<span class="tags-links">%1$s%2$s</span>',  
  15. sprintf( _x( '<span class="screen-reader-text">Tags</span>', 'Used before tag names.', 'catch-responsive' ) ),  
  16. $tags_list 
  17. ); 
  18.  
  19. echo '</p><!-- .entry-meta -->';