Generate responsive post thumbnails of same size

Install plugin: https://wordpress.org/plugins/force-regenerate-thumbnails/

and regenerate all thumbnails.

Or steps:

  1. Create new dimension for images:
    add_image_size ('thumb-cropped', 227, 133, true); // Set necessary sizes (true = cropped)

  2. Get images with the sizes in you function.

    get_the_post_thumbnail($post->ID);

    fix to:

    get_the_post_thumbnail($post->ID, 'thumb-cropped');

  3. Install plugin: https://wordpress.org/plugins/force-regenerate-thumbnails/

  4. Inter in admin area and regenerate all thumbnails

  5. The end. Use all new images with fixed dimension