[Support request] Positioning Author Box hook

Home Forums Support [Support request] Positioning Author Box hook

Home Forums Support Positioning Author Box hook

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2031182
    fellows2020

    Hello,

    I created an author box that appears at the end of my posts using guidance from prior forum posts. I would like to position the author box directly after the text of my article — before any plugins or additional ad injections occur. Ideally, I would also like it to register as part of the main body of the text so that the h2 heading of the author box shows up in my Table of Contents. I tried setting the priority to 1 and several different hook placements (after_content, after_main_content, etc) but nothing seems to move the author box above my jetpack social share plugin, or permit the h2 to get picked up by my Table of Contents plugin. Thank you for your advice.

    #2031381
    David
    Staff
    Customer Support

    Hi there,

    you would have to use the_content filter to output your author box – example of that here:

    https://developer.wordpress.org/reference/hooks/the_content/#comment-2360

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.