inkthemes_posted_in

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

Description

inkthemes_posted_in(); 

Usage

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

Defined (1)

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

/functions/inkthemes-functions.php  
  1. function inkthemes_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 = POSTED_ENTRY
  6. } elseif (is_object_in_taxonomy(get_post_type(), 'category')) { 
  7. $posted_in = POSTED_BOOKMARK
  8. } else { 
  9. $posted_in = BOOKMARK
  10. // Prints the string, replacing the placeholders. 
  11. printf( 
  12. $posted_in, get_the_category_list(', '), $tag_list, get_permalink(), the_title_attribute('echo=0') 
  13. );