• Hi, thanks for this theme. I like it. But I can’t get the author’s name to appear in the byline of a post – just date and tags. Any suggestions? Thanks.

Viewing 1 replies (of 1 total)
  • AddWeb Solution

    (@addweb-solution-pvt-ltd)

    Hello grahamwillis,

    Add below code into your current active child theme’s functions.php file or you can add into your themes functions.php file

    add_filter('the_content', 'add_my_content');
    
     function add_my_content($content)
      { 
      	$my_custom_text = 'Author '. the_author(); // text-html to replace 
    	if(is_single() && !is_home())
    	 { 
    	 	$content .= $my_custom_text;
    	  }
    	return $content; 
      }

    or you if you want to customize theme in content.php at line 74 add below code

    echo "authored by "; the_author();

    Hope this will helps you.

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Author name in byline’ is closed to new replies.