syamilmj / Aqua-Resizer

Resize WordPress images on the fly
501 stars 204 forks source link

Masonry Grid layout height and width #92

Open rxnmoldovan opened 8 years ago

rxnmoldovan commented 8 years ago

Hi everybody,

I am new to coding and got into this marvelous script in my wordpress .php files

My problem is the code looks like this:

<img src="<?php echo aq_resize(wp_get_attachment_url($image['attach_id']), "540", "375", true, true, true); ?>" alt="<?php echo $image['title']['value']; ?>" class="fw_featured_image" width="540" height="375">

I wish to get scaled thumbnails of the portrait and landscape uploaded photos for the grid.

Looking froward to your answer. Thanks a lot.