Home › Forums › Support › Add custom link to featured image on post page This topic has 5 replies, 2 voices, and was last updated 2 years, 10 months ago by Tom. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts October 3, 2018 at 11:53 am #692761 Liberty Hello, Is there a filter to add a custom link to the featured image on each post. I simply want to add a pinterest share link on each of my featured image π Thank you π October 3, 2018 at 9:47 pm #693006 TomLead Developer Lead Developer Hi there, You could try something like this: add_filter( 'generate_single_featured_image_output', function( $output, $image_html ) { printf( '<div class="featured-image"> <a href="#YOUR-URL"> %1$s </a> </div>', $image_html ); }, 10, 2 ); Let me know π October 3, 2018 at 11:45 pm #693042 Liberty Perfect ! Thank you π October 4, 2018 at 9:15 am #693481 TomLead Developer Lead Developer You’re welcome π June 18, 2021 at 7:22 am #1826470 Matt Hey @tom, this helped me out a ton. Thanks so much! June 18, 2021 at 8:08 pm #1827159 TomLead Developer Lead Developer No problem! π Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In