WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Get the Image] Plugin not displaying custom image sizes (1 post)

  1. ashkas
    Member
    Posted 1 year ago #

    Have looked throughout these forums (and Google) for help here but have come to a dead end.

    I'm using Get the Image plugin, and when requesting default image sizes of attached images, it works fine. But I have set up three cusom image sizes in my functions file:

    * large-16x9
    * medium-16x9
    * small-16x9

    When I request any of these sizes via the plugin, the custom size is added to the class of the image, but the url always falls back to the full size version of the image. If I change the image size request to "large", it instantly works.

    I've double checked the image upload folders, and all of these custom sizes exist. If I use the WP Featured Image tag, it works. I'm completely stumped.

    Here's the code I'm using.

    <?php get_the_image( array('size' => 'medium-16x9', 'thumbnail_id_save' => true, 'link_to_post' => false, width => '100%', 'image_scan' => true, 'order_of_image' => 1)); ?>

    Unfortunately can't show a site example as this is on a development server.

Topic Closed

This topic has been closed to new replies.

About this Topic