• Resolved Tuncay Demirtepe

    (@tuncaydemirtepe)


    I need to resize images for slider. I defined the size:

    add_image_size('home_image', 750, 420);

    and I call image with size:

    echo wp_get_attachment_image($img->ID, 'home_image');

    but wp resizes image as 560x420px, how can I force wordpress to resize image by 750x420px?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Tuncay Demirtepe

    (@tuncaydemirtepe)

    I realize what is the problem.. I have to re-upload images after defining size in functions.php

    Anonymous User 5466832

    (@anonymized-5466832)

    Regenerate Thumbnails plugin will do this if you change your preset images sizes. Enjoy!! (install the plugin, run the regen, no need to re-up)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘resize image on fixed width and height’ is closed to new replies.