Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1339518
    SebHor
    Participant

    Hello!

    I played around with some suggestions from the forum and the available shortcode but came to realize that I would need your help.

    Here is my situation.. Im posting articles mainly from two different authors on our blog page. I want to display a brief "about the author" section at the end of every post which should look like the shortcode you already provide on that topic. What do I have to do to display the profile of the authors even though Im posting the articles?

    Many thanks,
    Sebastian

    #1339519
    SebHor
    Participant
    This reply has been marked as private.
    #1339540
    Christopher
    Moderator

    Hi there,

    Please add following code in child theme’s functions.php file :

    add_filter( 'the_content', 'about_author' );
    function aabout_author($content){
      if ( is_singular('post') ) {
        $content .= do_shortcode('[author title="About the Author"]');
      }
    
      return $content;
    }

    Hope it helps.

    #1339547
    Thai
    Moderator

    Hi There,

    Please add the following code under functions.php file locates in your child theme:

    add_action( 'x_after_the_content_end', 'add_to_single_posts' );
    function add_to_single_posts() {
    	if ( is_singular( 'post' ) ) {
    		echo do_shortcode( '[author title="About the Author"]' ); 
    	}
    }

    Hope it helps 🙂

    #1339555
    SebHor
    Participant

    Thanks for the quick answer.
    How can I change the picture and the name of the Author plus give a brief summary about the author?

    Thanks,
    Sebastian

    #1339563
    Christopher
    Moderator

    Hi there,

    Add information about author under Users -> Profile, see the attachment.

    Hope it helps.

    #1339695
    SebHor
    Participant

    Thanks for the swift reply but how can I select authors for different posts?

    #1339947
    Rue Nel
    Moderator

    Hello There,

    If you want to have a different author in your post, you will have to edit each of the posts and change the author from there. Please check this links:
    https://codex.wordpress.org/Writing_Posts
    https://en.support.wordpress.com/posts/edit-posts-screen/#bulk-edit

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1339518 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>