Posted By

psteinweber on 04/28/11


Tagged

post wordpress teaser thesis byline project-newslichter


Versions (?)

Thesis: change teaser and post byline


 / Published in: PHP
 

  1. /*--------------------------------------------------*/
  2. /* change teaser & post byline */
  3. /*--------------------------------------------------*/
  4.  
  5.  
  6. /* --- switch of bylines in thesis! ---*/
  7.  
  8. function custom_byline_teaser() {
  9. ?>
  10. <div class="byline">von <?php the_author_posts_link(); ?> am <?php echo get_the_time(get_option('date_format')); ?> <?php edit_post_link(__('edit', 'thesis'), '<span class="edit_post">[', ']</span>'); ?> </div>
  11. <?php
  12. }
  13. add_action('thesis_hook_before_post', 'custom_byline_teaser');
  14. add_action('thesis_hook_before_teaser', 'custom_byline_teaser');

Report this snippet  

You need to login to post a comment.