- This topic has 4 replies, 2 voices, and was last updated 5 years, 7 months ago by .
- The topic ‘dont work BlogPosts Widget thumbnail’ is closed to new replies.
okay. my site i-vkusno-i-prosto.com.
on my site thumbnail in BlogPosts widget works incorrect.
because in the “icefit-blogposts.php” in 194 string code “$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘thumbnail’)”
but I found solution, instead this I write “$thumbnail = the_post_thumbnail();”
please can you say for me, why your code doesn’t worked on my site.
PS. Sorry for my mistakes, and I can give you Russian translate Chooko Pro.
I use Chooko Pro 1.4.2 on WordPress 4.1.3
This code is working correctly, however it could have been causing an issue on your site if your thumbnails were generated prior to using this theme.
If you were using another theme with different settings when you uploaded your images, then thumbnails could have been generated in a different way.
When this happen, the best thing to do is to “regenerate the thumbnails” for your images, so WordPress will re-create all thumbnails according to the current theme settings.
This free plugin does exactly this at the click of a button in just a few minutes: https://wordpress.org/plugins/regenerate-thumbnails/
Running it should fix your issue completely without the need to change any code from the theme.
but “regenerate the thumbnails” didn’t help me, o try use this plugin. =\
this code work now “$thumbnail = the_post_thumbnail();” and I’m glad
I’m now sure how or why thids plugin wouldn’t work for you, but if your modified code does the trick and you are happy with it, then I guess everything is fine! 🙂
IceableThemes has been crafting, supporting and updating Premium WordPress Themes since 2013.
We're here to help you get the best our of your site, not to make a quick sale. Our themes were built to last and we're here to stay in the long run.
Any question? Contact us and we'll be glad to help. Need assistance using one of our themes? Hit our support forums and we'll get your issue sorted in no time.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.