Skip to content

Commit

Permalink
Merge pull request #1182 from equalizedigital/dev/profession
Browse files Browse the repository at this point in the history
imgae size
  • Loading branch information
tronsymphony authored Apr 15, 2024
2 parents 5a2984f + b7298e8 commit bc34025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template-parts/blocks/team-hightlight/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<?php
$thumbnail_id = get_post_thumbnail_id( $member->ID );
if ( ! empty( $member->ID ) ) {
$image_url = wp_get_attachment_image_src( $thumbnail_id, 'full' );
$image_url = wp_get_attachment_image_src( $thumbnail_id, 'large' );
$featured_image_url = $image_url[0];
if ( ! empty( $featured_image_url ) ) {
echo wp_kses_post( '<img src="' . $featured_image_url . '" alt="' . get_the_title( $member->ID ) . '">' );
Expand Down Expand Up @@ -164,7 +164,7 @@
<?php
$thumbnail_id = get_post_thumbnail_id( $member->ID );
if ( $thumbnail_id ) {
$image_url = wp_get_attachment_image_src( $thumbnail_id, 'large' );
$image_url = wp_get_attachment_image_src( $thumbnail_id, 'full' );
$featured_image_url = $image_url[0];
echo wp_kses_post( '<img src="' . $featured_image_url . '" alt="' . get_the_title( $member->ID ) . '">' );
}
Expand Down

0 comments on commit bc34025

Please sign in to comment.