• Each posts appear with title, followed by “written by (user name) on (date/time). This appears as regular text. Is there a way to make the name of the user who wrote the post into a link so that people can click on the name to view some brief author profile?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    add somehting like this to your functions.php

    function twentyten_posted_on() {
    	printf( __( '<span class="meta-sep">By</span> %3$s <span class="%1$s"> | Published</span> %2$s', 'twentyten' ),
    		'meta-prep meta-prep-author',
    		sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
    			get_permalink(),
    			esc_attr( get_the_time() ),
    			get_the_date()
    		),
    		sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
    			get_the_author_meta( 'URL'),
    			sprintf( esc_attr__( 'About the author and gurbani.org website %s', 'twentyten' ), get_the_author_meta( 'URL') ),
    			get_the_author()
    		)
    	);
    }

    Thread Starter motom

    (@motom)

    that didn’t do any thing

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Making the "by user name" for each post a link?’ is closed to new replies.