firsttec_posted_in

Prints HTML with meta information for the current post (category, tags and permalink).

Description

firsttec_posted_in(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function firsttec_posted_in() { 
  2. // Retrieves tag list of current post, separated by commas. 
  3. $tag_list = get_the_tag_list( '', ', ' ); 
  4. if ( $tag_list ) { 
  5. $posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'firsttec' ); 
  6. } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { 
  7. $posted_in = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'firsttec' ); 
  8. } else { 
  9. $posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'firsttec' ); 
  10. // Prints the string, replacing the placeholders. 
  11. printf( 
  12. $posted_in,  
  13. get_the_category_list( ', ' ),  
  14. $tag_list,  
  15. get_permalink(),  
  16. the_title_attribute( 'echo=0' ) 
  17. );