Advertisement
Guest User

Untitled

a guest
Sep 13th, 2010
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. <?php
  2.  
  3. /** Tell WordPress to run child_theme_setup()
  4. when the 'after_setup_theme' hook is run.
  5. */
  6. add_action( 'after_setup_theme', 'child_theme_setup' );
  7.  
  8. /** This function will hold our new calls and over-rides */
  9. if ( !function_exists( 'child_theme_setup' ) ):
  10. function child_theme_setup() {
  11.  
  12.  
  13. /*
  14. I want the Posted On date to show, but not the author.
  15. */
  16. }
  17.  
  18. function twentyten_posted_on() {
  19.  
  20. printf( __( '<span class="%1$s">Posted on</span> %2$s', 'twentyten' ),
  21.  
  22. 'meta-prep meta-prep-author',
  23.  
  24. sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
  25.  
  26. get_permalink(),
  27.  
  28. esc_attr( get_the_time() ),
  29.  
  30. get_the_date()
  31.  
  32. ),
  33.  
  34. sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
  35.  
  36. get_author_posts_url( get_the_author_meta( 'ID' ) ),
  37.  
  38. sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
  39.  
  40. get_the_author()
  41.  
  42. )
  43.  
  44. );
  45. }
  46.  
  47.  
  48. }
  49. endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement