Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1409369
    Itwebdevelopment
    Participant

    I want to show authors on the blog but I’m wondering what plugin theme x recommends to use with their theme.

    Can you help?

    Thank you!

    #1409438
    Lely
    Moderator

    Hi There,

    Do you mean just add the author on blog single post pages?
    If yes, we can achieve is by adding the following code on your child theme functions.php file. No need for a plugin:

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

    Hope this helps.

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