getting full image rather than thumbail
-
Hi !
there is a template page on my theme I use to showcase my pics with a title and some text. I like it very much ??
I found out there is a php file called content-portfolio.php that displays the image, the title and the text of all the articles that belongs to the portfolio kind.The image displayed is the thumbnail. And I would like to have the full image, not cropped here. I know it is the next step for me in WP, to understand php better, so rather than calling the thumbnail, how do I call the full size image in here ?
Thank you
<?php if ( has_post_thumbnail() ): $personal_portfolio_src = wp_get_attachment_image_src( get_post_thumbnail_id(), 'personal-portfolio' ); ?> <img src="<?php echo esc_url( $personal_portfolio_src[0] ); ?>" class="aligncenter"> <?php endif; ?>
Reference page of the theme I use : https://modernthemes.net/wordpress-themes/personal/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘getting full image rather than thumbail’ is closed to new replies.