Portfolio breadcrumb link in the7 always link to the archive page, to change it to your custom portfolio listing page, add this code in your child theme’s funtions.php
add_filter( 'post_type_archive_link', function ( $link, $post_type ) {
if($post_type == 'dt_portfolio' ) {
$link = get_permalink( 6936 ); //id of the target page
}
return $link;
}, 10, 2 );
}
Please remember to update #6936 to with your target page ID. You can change the breadcrumb link for another post type as well. Just adjust the if condition accordingly.



