Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello, I wasn’t able to see the cut-off image on the site you mentioned, but a couple of possibilities come to mind:

    – it could be a thumbnail image you’re displaying, in which case the image might be cropped from the original;
    – or, perhaps the image is bigger than the width of the sidebar and goes over the edge.

    In the first case, if it’s a featured image, you could try this to display the full size, instead of the thumbnail: [content field="image" size="full"]

    In the second case, you might need to limit the maximum width of the image so that it fits the sidebar.

    Hi Elliot, I think you forgot to add the size param on includes/ccs-content.php line 432.

    This
    case "image": $out = get_the_post_thumbnail($custom_id); break;
    should be this
    case "image": $out = get_the_post_thumbnail($custom_id, $size); break;

    As it was, I was only getting the thumbnail no matter what. Probably what Jeremy above was getting as well.
    Wondering if there a clean way to set the default to ‘large’ on that same line?

    Plugin Author Eliot Akira

    (@miyarakira)

    Hello – wow, very perceptive! Yes, I believe I forgot to add the image size there. Thank you for pointing this out, I will include the fix in the next update.

    Since I wanted the full image in all cases – i added this line:
    case "image-full": $out = get_the_post_thumbnail( $custom_id, 'full' ); break;

    used this for the shortcode
    [content field=”image-full”]

    It would be very helpful Eliot if you could list many more examples of available shortcode examples

    Plugin Author Eliot Akira

    (@miyarakira)

    Sorry for the late reply – I plan to make an update soon, but I’ve been quite busy this week. For compatibility, I will include your method of showing full-sized images.

    Thanks for the suggestion of more examples. I plan to re-organize and update the documentation too – hopefully in the next day or so.

    Plugin Author Eliot Akira

    (@miyarakira)

    Hello kalligator and seeley,

    I implemented both of your suggestions in the update to version 0.6.9. Now field=”image” displays the full-size featured image by default, and correctly shows when the size parameter is set.

    I included “image-full”, just for compatibility’s sake, seeley, so you don’t need to go back and modify what you’ve already written.

    About the suggestion to include more examples, I read over the reference page (under Settings -> Custom Content) and couldn’t find a place to put any more information. I’m working on a demo site where the plugin functions can be seen in action, with code examples.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘image cut off’ is closed to new replies.