Hi there! I am adding a new post to a CPT that I created with Toolset, and there seems to be something wrong in the content template because it is not loading my featured image where it should load it on the post page. It has always worked in the past, and it is still working for the past posts, but this is the first post of this CPT that i'm making since the last update.
I built the coy of your website locally and I was able to reproduce the issue. This is somehow expected because the copy I took did not contain any images. As soon as I updated a Project featured image, the image displayed. With different ways. Check this screenshot hidden link
I wanted to check your website again, but I'll need FTP or cPanel access. I am setting your next reply as private to let you share the credentials.
Thank you for the FTP credentials. I believe I find out the cause of the issue.
First, check this screenshot hidden link These are the original image uploaded to the post and the generated thumbnails(by WordPress). Toolset Blocks was not able to generate the expected thumbnail(700*350 center/center), possibly because the original image has already the parts of the name(-wpv_700x350_center_center).
So, I downloaded the bigger image, and rename it by removing the thumbnail parts(papr_PROJECT-2.jpg) then I uploaded it again to the post and it fixed the issue. Check the, now, available images hidden link
I hope this helps. Let me know if you have any questions.
Hi Jamal,
Thanks so much, that did indeed fix it. Do you know what I need to do differently from the front end? or do i need to go into the WP Content files and download the image and rename it every time? Is there a way i can approach this from the front-end wordpress Admin? thanks!
You can address this from the WordPress backend or from the frontend, you just need to make sure that the featured image that you will be using does not include this part in its name "-wpv_700x350_center_center". Does it make sense?
yes, that makes sense, however those names are getting added automatically. So when i add the feature image it might say "project_2-feature.jpg" then in the Toolset block ive made a custom field requiring that the featured image show in that space, and then when i inspect it in Chrome it has the different naming convention tied to it. Does that make sense? 😀
It does make sense 🙂
WordPress and Toolset will generate additional images(usually called thumbnails) from each uploaded image. WordPress will generate the thumbnails that are configured in Settings->Media, usually 3 dimensions. It will also generate thumbnails dimensions added by a theme or a plugin.
These images will have the (width X height) in pixels added to their names. For example, for an image "project_2-feature.jpg" it will generate an image "project_2-feature-150x150.jpg" that will have 150px width and 150 px height.
Toolset follows this naming convention and may add some words depending on the image shortcode configuration, for example, cropping, resizing, or alignment. So, the following shortcode:
[wpv-post-featured-image size="custom" width="700" height="350" crop="true"]
For an image "project_2-feature.jpg" will generate an image "project_2-feature-wpv_700x350_center_center.jpg"
On your website, you were using an image "papr_PROJECT-2-wpv_700x350_center_center.jpg", the content template was generating HTML code that seeks for "papr_PROJECT-2-wpv_700x350_center_center-wpv_700x350_center_center.jpg". But this image was never generated. I assume that Toolset thoughts that the original image "papr_PROJECT-2-wpv_700x350_center_center.jpg" is the thumbnail and did not trigger the expected thumbnail "papr_PROJECT-2-wpv_700x350_center_center-wpv_700x350_center_center.jpg"
Does it make sense?
ok! i think that makes sense 😀 So basically i should make sure that my images don't have anything like that in the name and that should do it hopefully, if not i will open back up this thread and bug you about it. Thanks so much Jamal. One other question - do you know if Toolset is prepared to handle this upcoming big WordPress update to 5.7 with the JQuery changes?
🙂 no, that's not bugging, we are here to help. Please reopen the thread or open another thread if you have any question 😉
Regarding the upcoming WordPress update, I am sure Toolset will handle it. After all, we do not publish updates until we test them and use them on our own website(toolset.com, wpml.org, etc.) and we do use jQuery in our themes. I am confident that we will handle that before releasing it.
Ok, thank you so much Jamal for your help, and for all of the effort you put in to helping me figure out the issue. Take care!
My issue is resolved now. Thank you!