Playing with post titles

function add_to_byline() { ?>

</p><p><?php echo __(‘Posted in:’, ‘thesis’) . ‘ <span>’ . get_the_category_list(‘,’) . ‘</span>’; ?>

<?php }

add_action(‘thesis_hook_byline_item’, ‘add_to_byline’, ’99’);

 

 

function myavatar_post_title() { ?>

 

<?php echo get_avatar( get_the_author_id() , 48 ); ?>

 

<?php }

 

add_action(‘thesis_hook_before_headline’, ‘myavatar_post_title’);

 

function custom_byline() {

if (!is_page()) { ?>

<p class=”headline_meta”><abbr title=”<?php echo get_the_time(‘Y-m-d H:i’); ?>”><?php echo get_the_time(get_option(‘date_format’)); single_cat_title();?> <?php the_time(‘G:i a’); ?></abbr>

&middot; <span><a href=”<?php the_permalink(); ?>#comments” rel=”nofollow”>

<?php comments_number(__(‘0 comments’, ‘thesis’), __(‘1 comment’, ‘thesis’), __(‘% comments’, ‘thesis’));

the_category(“,”);

?></a></span></p>

<?php }

}

 

add_action(‘thesis_hook_after_headline’, ‘custom_byline’);

 

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s