I figured out the lines of code that are causing this issue
// Experiment!
// Cropping image using Aqua Resizer
$thumb_id = get_post_thumbnail_id();
$img_url = wp_get_attachment_url( $thumb_id, 'full' ); // Get img URL.
$image = aq_resize( $img_url, $args['thumb_width'], $args['thumb_height'], true ); // Resize & crop img.
$html .= '<li class="rpwe-li rpwe-clearfix">';
if ( $args['thumb'] ) :
// Check if post has post thumbnail.
if ( has_post_thumbnail() ) :
$html .= '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">';
$html .= '<img class="' . $args['thumb_align'] . ' rpwe-thumb get-the-image" src="' . esc_url( $image ) . '" alt="' . esc_attr( get_the_title() ) . '">';
I replaced the above codes with the below
// Experiment!
// Cropping image using Aqua Resizer
//$thumb_id = get_post_thumbnail_id();
//$img_url = wp_get_attachment_url( $thumb_id, 'full' ); // Get img URL.
//$image = aq_resize( $img_url, $args['thumb_width'], $args['thumb_height'], true ); // Resize & crop img.
$html .= '<li class="rpwe-li rpwe-clearfix">';
if ( $args['thumb'] ) :
// Check if post has post thumbnail.
if ( has_post_thumbnail() ) :
$html .= '<a href="' . get_permalink() . '" rel="bookmark">';
$html .= get_the_post_thumbnail( get_the_ID(),
array( $args['thumb_width'], $args['thumb_height'], true ),
array(
'class' => $args['thumb_align'] . ' rpwe-thumb the-post-thumbnail',
'alt' => esc_attr( get_the_title() )
)
);
$html .= '</a>';
and it worked.
Basically i commented out the Aqua Resizer part and then replaced the post thumbnail code with the code from the previous version and it works fine.