WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Simple the_content hook renders first

[Resolved] Simple the_content hook renders first

  • Hello,

    I’m looking to add in an authors description at the end of a post, I will be using a related post plugin later that hooks into the_content, and I want the description to be after the post but before the related posts.

    I have this so far;

    add_action ( 'the_content', 'authbio', 99 );
    
    function authbio($content)  {
        $output = the_author_meta('description');
        $content .= $output;
        return $content;
    }

    the description is rendering, but for some reason it’s rendering before the post.

    Any ideas?

    Many thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Simple the_content hook renders first’ is closed to new replies.