Viewing 1 replies (of 1 total)
  • hpatoio,

    Not a huge fan of altering the core but have you looked at wp-includes/author-template.php starting on line 166.

    function the_author_posts_link($deprecated = '') {
    	global $authordata;
    	printf(
    		'<a href="%1$s" title="%2$s">%3$s</a>',
    		get_author_posts_url( $authordata->ID, $authordata->user_nicename ),
    		sprintf( __( 'Posts by %s' ), esc_attr( get_the_author() ) ),
    		get_the_author()
    	);
    }

    Perhaps altering “user_nicename” to “display_name” is what you are looking for. I don’t have time to test this right now but seems like a good start. Of course there are several other locations this will need to be altered as well: link-template.php, query.php and general-template.php.

    Just a thought anyway.

Viewing 1 replies (of 1 total)
  • The topic ‘Change default URL for author link’ is closed to new replies.