• Resolved unklee

    (@unklee)


    I have been using Custom Related Posts for a while now and really appreciate it. The graphics appear as 200 x 100. However occasionally a graphic appears in a different size, and I’m trying to work out why.

    Today I selected 5 posts in Custom Related Posts, all of them originally the same size (720 x 360) and with smaller sizes created by WordPress. Four of the five appear correctly as 200 x 100 on the page, but one appears as 144 x 72.

    I’m trying to figure out why. Can you tell me please how CRP chooses which size graphic to show, and why it sometimes chooses a different size? Is there anything I can do to change this?

    Thanks.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Brecht

    (@brechtvds)

    What is the image size set to on the Settings > Custom Related Posts > Template page?

    We basically just use the default WordPress get_the_post_thumbnail function to request the size you put there. Depending on the image thumbnails that have been generated (by WordPress), we can only output what’s available.

    Thread Starter unklee

    (@unklee)

    Thanks for replying so promptly. The image is set to 200×100 in settings and there is an image of that size in the Uploads folder. But it shows at 144×72 and there is no image of that size (but images of about 6 other sizes). All other images are the same, but they show correctly.

    I have tried changing images (e.g. copying an image that is showing correctly), re-loading images, changing the order, etc, but always the reduced size. It’s very strange. But don’t worry too much, I can cope with the inconsistency, and it may be something on my site rather than in the plugin.

    Plugin Author Brecht

    (@brechtvds)

    I missed the link to the problem earlier. Just had a look and it’s indeed using the correct thumbnail, but just shrinking the image to make some more space for the long title.

    Could you try adding this to the “CSS” setting in the Template section I mentioned earlier?

    .crp-list-item-image {
    flex-shrink: 0;
    }

    Thread Starter unklee

    (@unklee)

    Interesting. I did note that the heading was very long, and that proved to be the answer.

    For some reason, when I tried to add that code to the settings, it wouldn’t save (probably nothing to do with the plugin, more likely because I am in Australia and my host is in US, and there was some glitch along the way). But I simply added the code to my child theme CSS and that was fine.

    Thanks for that prompt response. I have learnt something!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Odd graphic sizes’ is closed to new replies.