I tried your resize script and so far it seems to be working. I am not sure I know what I am doing so I would like for you to check my code please.
I made a widget in the functions.php file. I took code from your example on this page and turned it into a function. Then I called that function in my widget which is displaying in the sidebar. Here is a chunk form my widget
What I don't understand is how to get this script to replace the_post_thumbnail? I hate using add_image_size. I added three sizes today and have been working for 4 hours trying to get the right size to show up in the sidebar. I finally added your script and had it working in 5 minutes. So how do I get this script to replace the add_image_size crap so that no matter what image is uploaded through the uploader, the proper size will display. for the sidebar, gallery, post and pages, I pretty much know what size I want but I have to code the the ability for the user to select his own size. Can you offer any advice on how to use this code of yours effectively?
I tried your resize script and so far it seems to be working. I am not sure I know what I am doing so I would like for you to check my code please.
I made a widget in the functions.php file. I took code from your example on this page and turned it into a function. Then I called that function in my widget which is displaying in the sidebar. Here is a chunk form my widget
The loop above queries a custom post type. Then in the functions.php file, I put in this function.
What I don't understand is how to get this script to replace the_post_thumbnail? I hate using add_image_size. I added three sizes today and have been working for 4 hours trying to get the right size to show up in the sidebar. I finally added your script and had it working in 5 minutes. So how do I get this script to replace the add_image_size crap so that no matter what image is uploaded through the uploader, the proper size will display. for the sidebar, gallery, post and pages, I pretty much know what size I want but I have to code the the ability for the user to select his own size. Can you offer any advice on how to use this code of yours effectively?