Plugin Author
Ajay
(@ajay)
Li-An,
This is possible by adding a new function into your functions.php file.
Do you know what this “already created thumbnail” is?
Thread Starter
Li-An
(@li-an)
It’s a thumbnail created by the theme but I was thinking to use the thumb size automatically created by WP for each image. Give an example for the function and I think I will manage it.
Plugin Author
Ajay
(@ajay)
The example of the function is within the plugin. Check out crp_scale_thumbs which uses the crp_postimage filter to update the image location to use timthumb.
You should add this code to your functions in addition to your new function.
remove_filter( 'crp_postimage', 'crp_scale_thumbs' );
Thread Starter
Li-An
(@li-an)
Thanks, I will take a look.
Thread Starter
Li-An
(@li-an)
I took a look… but it’s to difficult for me 🙂
It could be a good thing to give the user the opportunity to choose between all the sizes created by WP and the theme – http://ww.wp.xz.cn/plugins/related-posts-thumbnails/ gave the possibility to do so.
Plugin Author
Ajay
(@ajay)
Li-An, I have another user request the same option. I think I might be able to program something in that would hopefully bypass timthumb and use an existing image / create a new one.
Thread Starter
Li-An
(@li-an)
It would be a great idea – using created thumbnails is much more convenient as some plugins like Crop Thumbnail gives the ability to manage with precision the thumbnails. And as more and more themes offers basic relative posts function, it will be more easy to adapt your plugin to the themes.