-
Author
-
March 4, 2014 at 22:38 #11900sharmstrModerator
Took me forever to figure this one out. Turns out if your featured image is less than 480px wide, it wont show up in the masonry grid. I figured out that the aq_resize isn’t working for smaller images in post-content-masonry.php.
I verified the following.
1 – get_post_thumbnail_id get the correct id
2 – wp_get_attachment_url gets the correct url for the image
3 – aq_resize returns “” if the image is less than 480px! arrrgggg. (sorry, I’m just a bit frustrated since I burnt hours figuring this out.)In order to fix this, I had to pass a null height and true for cropping, single and upscale.
COPY CODE$image = aq_resize( $img_url, 480, '', true, true, true );
Here’s info from the devloper on this: https://github.com/syamilmj/Aqua-Resizer/issues/40
This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
March 6, 2014 at 18:10 #12121AbeKeymasterYes indeed it needed the option to force upscale. We already fixed it for 1.2 version
Thanks
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.March 7, 2014 at 16:30 #12198sharmstrModeratorThe fix didnt work. I had to change it to $image = aq_resize( $img_url, 480, null, true, true, true );
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
March 7, 2014 at 22:35 #12260AbeKeymasterHi, It should have only 6 parameters like:
aq_resize( $img_url, 480, 9999, null, true, true );
This is included in the update 1.2Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.March 7, 2014 at 23:05 #12271sharmstrModeratormy fix only has 6 parameters. look closely. and your fix didnt work for a few of us. mine did.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
March 7, 2014 at 23:39 #12279AbeKeymasterThanks sharmstr, Seems the cropping parameter needed to be set to true.
We modified this for next versionHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.