• Hi,

    I’ve installed the plugin and specified my required settings, but when it comes to actually cropping and saving the thumbnail, nothing actually seems to happen? I’m pretty sure I’ve set everything correctly, and apologies if I have missed anything obvious.

    I’ve tried doing this via the media page, and in the ‘Thumbnail’ option on the post itself. When the Thumbnail Editor box appears, my thumbnail settings are correct, and I can select the crop, but when I click ‘Crop & Save’, nothing seem to happen. I also click on the ‘view’ tab, and my crop is there but nothing else displays with it? I then close the box and the ‘Featured Image’ section of the post editor is still empty and asking if I want to select an image.

    Am I missing something really obvious, or is there an issue with the crop and save function? I’ve deactivated my other plugins to see if this is causing conflict but there was no change.

    Thanks in advance! ??

    https://www.ads-software.com/plugins/post-thumbnail-editor/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author sewpafly

    (@sewpafly)

    Enable debug mode, then try it again. After you try it again, there should either be errors in the log file (the link is on the settings page), or in the javascript console of your browser. The log messages should help to pinpoint where the problem is occuring.

    Thread Starter carlysmith1989

    (@carlysmith1989)

    Thanks for your response.

    I’ve enabled debug mode, retried and the problem still exists. I’ve checked the log file, and there doesn’t appear to be any mention of an error.

    Could it be I haven’t called the thumbnail correctly in my template? I’ve used the following:

    <?php echo get_the_post_thumbnail(); ?>

    Plugin Author sewpafly

    (@sewpafly)

    If crop & save isn’t working then it won’t matter how you call the post thumbnails in your template. When you load the PTE interface, do the thumbnails look correct on the view tab?

    (Alternately, you might try disabling the crop & save option, then see if the crop and manual confirm method works. https://youtu.be/MgnvUEqBVZY)

    Thread Starter carlysmith1989

    (@carlysmith1989)

    Thanks for sending the Youtube link. I’m doing everything the same as in the video.

    Yes, the thumbnails look correct on the view tab. I then click the little save icon, close the window and nothing has changed when I refresh my webpage. I’m still greeted with the full size image, rather than my new crop.

    Should the ‘featured image’ preview also change in the post edit mode? If so, mine is not doing this…

    Plugin Author sewpafly

    (@sewpafly)

    Oh, okay, it sounds like PTE is working then, we just need to work on displaying the post-thumbnails…

    If you just want to do this per post then I would recommend using my other plugin “Post Thumbnail Extras”, which lets you create different post-thumbnail sizes and then gives you a shortcode that you can drop in a post to display a post thumbnail.

    If you need to do this for every post then here is the code that you will need to display a given post-thumbnail:

    $img_tag = wp_get_attachment_image( $attachment_id, $post_thumbnail_size, false, $html_attrs );
    Thread Starter carlysmith1989

    (@carlysmith1989)

    I’ve downloaded that plugin and I seem to have even less options for some reason. If I outline exactly what I need, that may be easier:

    My Index page is the blog feed, displaying 10 posts per page. Each post in the feed has the title, excerpt, meta date and a click through link. It also has a thumbnail (size 850 x 330).

    When you click through to read the full post, I’d like the same image to appear as a featured mage at the top, but with a different size/crop.

    When I upload a post, I would like to be able to select the featured image, creating a crop of 850×330 for the feed, and another crop to be displayed at the top of the post itself.

    Can either of your plugins do this?

    Thanks again for your help.

    Plugin Author sewpafly

    (@sewpafly)

    What you would do in this instance is each post needs to have a “featured image” attached. Then your theme would define 2 different post thumbnails. (If you are writing your own theme you can create a post thumbnail with the add_image_size function (see https://codex.www.ads-software.com/Post_Thumbnails). Your theme could then call the get_the_post_thumbnail function (https://codex.www.ads-software.com/Function_Reference/get_the_post_thumbnail) using the post thumbnail size that you want to get.

    Really the purpose of my plugin “Post Thumbnail Editor” is to make sure that the post thumbnails created by wordpress are cropped correctly.

    “Post Thumbnails Extra” consists of some helper functions to create some post-thumbnail sizes without modifying your theme, and then put the shortcodes in your post for images rather than hardcoding the HTML for images.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘'Crop & Save' not working’ is closed to new replies.