Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




the_author_posts_link [ WordPress Function ]

the_author_posts_link ( $deprecated = '' )
Parameters:
  • (string) $deprecated Deprecated.
Uses:
Links:
Defined at:



Display an HTML link to the author page of the author of the current post.

Does just echo get_author_posts_url() function, like the others do. The reason for this, is that another function is used to help in printing the link to the author's posts.

Source


<?php
function the_author_posts_link($deprecated '') {
    if ( !empty( 
$deprecated ) )
        
_deprecated_argument__FUNCTION__'2.1' );

    global 
$authordata;
    if ( !
is_object$authordata ) )
        return 
false;
    
$link sprintf(
        
'<a href="%1$s" title="%2$s" rel="author">%3$s</a>',
        
get_author_posts_url$authordata->ID$authordata->user_nicename ),
        
esc_attrsprintf__'Posts by %s' ), get_the_author() ) ),
        
get_the_author()
    );
    echo 
apply_filters'the_author_posts_link'$link );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics