Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jan-Willem

    (@janwoostendorp)

    Hello Claudio,

    EDIT: I didn’t read it right. Let me research this a bit more.

    Jan-Willem

    • This reply was modified 4 years, 8 months ago by Jan-Willem.
    Plugin Author Jan-Willem

    (@janwoostendorp)

    Hello Claudio,

    Yes I secificly made this as an exception. But to enable you only have to register the custom add_filter included:

    add_filter( 'post_thumbnail_html', 'my_post_image_html', 10, 3 );
    add_filter( 'dfi_thumbnail_html', 'my_post_image_html', 10, 3 );
    
    function my_post_image_html( $html, $post_id, $post_image_id ) {
    
    	$html = '<a href="' . get_permalink( $post_id ) . '">' . $html . '</a>';
    	return $html;
    
    }

    Let me know how it goes!

    Jan-Willem

    Thread Starter sncs

    (@sncs)

    Hello Jan-Willem
    Great, it works, thank you!

    Claudio

    Plugin Author Jan-Willem

    (@janwoostendorp)

    No problem ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Linking to Post Permalink’ is closed to new replies.