I’ve created a custom post type with a content template that pulls in the title, featured image, and content dynamically. For this custom post type, I’ve created a custom hook for social media sharing buttons. In most parts of the custom post type, I’m able to display these social buttons with no issues and predictably. However, when I try to use the hooks to generate after entry title, before entry content, etc. It will not display where it should.
If I change the hook location to just regular posts it displays exactly where it should. Is there an extra step I’m supposed to take to get it to display after my title with custom post types? The hook works and displays perfectly otherwise, I just cant get it to display after my title, or before my content.
Here is a link to the custom post type in question and the social media sharing buttons displaying properly at the bottom of the page (generate_after_do_template_part)