PenciDesign replied
Hi,
That code can't be change anything... Because that code will auto add post URL to featured image. It can't be custom URL for specifict featured images.
Best Regards,
PenciDesign
Could I add this code?
function wpb_autolink_featured_images( $html, $post_id, $post_image_id ) {
$html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_the_title( $post_id ) ) . '">' . $html . '</a>';
return $html;
}
add_filter( 'post_thumbnail_html', 'wpb_autolink_featured_images', 10, 3 );
I would like the featured photos on my homepage link directly to the specific blog post but I cannot find where to customize this. I've reviewed the forum and not found an answer.
Want to join this conversation or access attachments? Sign in first.
Open your ticket archive, review validated licenses, and continue product support conversations from one customer portal.