Example #1
0
function p2_author_id()
{
    echo p2_get_author_id();
}
Example #2
0
		<?php 
if (!is_page()) {
    ?>
			<?php 
    printf('<a href="%1$s" title="%2$s">%3$s</a>', get_author_posts_url(p2_get_author_id(), p2_get_author_name()), sprintf(__('Posts by %s', 'p2'), esc_attr(get_the_author())), p2_get_user_avatar(array('user_id' => p2_get_author_id(), 'size' => 48)));
    ?>
		<?php 
}
?>
		
		<?php 
if (!is_page()) {
    ?>
			<h4>
			<?php 
    printf('<a href="%1$s" title="%2$s">%3$s</a>', get_author_posts_url(p2_get_author_id(), p2_get_author_name()), sprintf(__('Posts by %s', 'p2'), p2_get_author_name()), get_the_author());
    ?>
			<span class="meta">
				<?php 
    echo p2_date_time_with_microformat();
    ?>

				<span class="actions">
					<?php 
    if (!is_single()) {
        ?>
						<a href="<?php 
        the_permalink();
        ?>
" class="thepermalink"><?php 
        _e('Permalink', 'p2');