• Resolved jayrenn

    (@jayrenn)


    A site we’re taking over recently started displaying cropped images but the really strange part is that once in a while, it will display the full image. When it does that, it has actually chosen a different image. For example, one page usually displays “coupe-2-1500×400.png”, but occasionally displays “coupe-2.png” I pulled the site onto my localhost and the first time I looked at the affected pages, it used the full-size photo (coupe-2.png). After that, it started showing the cropped image (coupe-2-1500×400.png) How can I make it only show the full-size version?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Good day,

    CPTUI doesn’t and shouldn’t have any sort of influence on the topic of images and chosen image sizes, so I have to wonder if it’s a theme issue or something coming from a different plugin in your website.

    Regarding forcing the full size image, you’d need to find where the theme is set to display something and pass the correct size indicator to the functions involved.

    Thread Starter jayrenn

    (@jayrenn)

    What in CPT actually decides which image to use? I specify the full-size image from the Media area when I create the post, but it uses a squatty, cropped version of that image instead. How can I stop that behavior? If you would like access to the site to look for yourself, let me know.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    That process is all WordPress core, and nothing CPTUI. We merely register the post types and taxonomies for you to use, we have zero influence on the display of the content on the frontend, especially regarding images. Me being granted access to anything won’t change that, so no need to escalate things to that level 🙂

    Thread Starter jayrenn

    (@jayrenn)

    The answer to this problem was in the theme I was using. There was a file in the theme adding thumbnail sizes. I just change the last parameter of the size that the page was using from true to false.

    add_image_size( ‘featured-xlarge’, 1920, 400, false );

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    So no cropping, got it.

    You’ll want to use something like the “Regenerate Thumbnails” plugin to cycle through all your existing media, because this change won’t be retroactive. It’ll just affect all future uploads.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Different Images Being Selected’ is closed to new replies.