Support » Themes and Templates » [Theme: twentythirteen] Author not displaying

  • So I have the default entry_meta function, and it is not displaying the author of a blog post. I am fairly new to WordPress, so if someone could please help me decipher what is wrong here?

    // Post author
    	if ( 'post' == get_post_type() ) {
    		printf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
    			esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    			esc_attr( sprintf( __( 'View all posts by %s', 'twentythirteen' ), get_the_author() ) ),
    			get_the_author()
    		);
    	}
Viewing 6 replies - 1 through 6 (of 6 total)
  • Do you mean the link to Author archive page ( View all post by ) ? It won’t show up for a 1 author blog. To make it show, put this in child theme stylesheet or any of the Custom CSS plugin.

    .single-author .entry-meta .author { display: inline; }

    For the author info box down below the “single post”, it will show up only if there are more than 1 author and the author info is actually filled up. So in case of 1 author blog, just create a dummy author and publish at least 1 (dummy) post, and if you do this, the code above is not necessary.

    Thread Starter Brandon White

    (@aschx)

    I’m not sure I am following. But yes, what I am trying to go is to show the author, no matter the number of authors.

    Thread Starter Brandon White

    (@aschx)

    Nevermind, managed to get it. For anyone not sure what to do, add the following under 5.8 (Author Bio) in style.css of the “twentythirteen” theme.

    .single-author .entry-meta .author { display: inline; }

    I had my doubts that just adding that would do it, but thanks for the help, paul!

    Thread Starter Brandon White

    (@aschx)

    However, I do have one issue. It is not linking to the author archive correctly with just one author. (it links to “./author”)

    Thread Starter Brandon White

    (@aschx)

    Anyone?

    Thread Starter Brandon White

    (@aschx)

    Resolved

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Theme: twentythirteen] Author not displaying’ is closed to new replies.