Featured images not appearing - wordpress

So I’ve been struggling with this problem for a few weeks now. I’ve deactivated and reactivated every plug-in AND tested my theme to see if that was the cause (and it was not) but for some reason most of my featured images are not showing up and it’s terribly annoying since it messes with the way my posts appear on my blog.
I’m considering leaving WordPress if this does not get resolved soon.
The featured images on my blog will not appear. They can be uploaded and edited. I’ve rebuilt their thumbnails. They are just fine until I attach them to a post and then they won’t show.
The problem is when I set a featured image. I can click on an image I uploaded, but it won’t actually attach to the post. After I select a featured image, it says “Click the image to edit or update” or “Remove Image” but there isn’t a picture there and when I update or publish the page, still no picture. This isn’t the case across the board and I have no idea why about six pictures have worked and the others haven’t. I’ve resized them to be the same size, same picture quality, even similar names. I’ve tried it all. I don’t know what’s wrong.
How do I fix this?

If there is no code or image is hard to understand what is happening. Could be a lot of things
The theme you have does not call those images or have to be called in a different manner. Check the theme manual or get another. (hardest way an not recommend to do it) revise the theme code to check if it does it.
Check that you are in the correct page, featured images are for posts check that you are not in a page url. Click on the url on top of the post to go directly to the post page. Also publish it before going to the post url.
Surelly there may be other thing to take in consideration, but these are the most common. Without more information of the problem is really hard to get a proper answer.

Related

Featured Image doesn't show on the Product page

I'm struggling with my wordpress page, with woocommerce. The featured image should be showing as the first image on the product page, but isn't. I've read a few other threads, like this one:
Product Images don't show (Woocommerce)
where they have some solutions, but the CSS they are proposing isn't working.
My page is here: www.byjgk.com , and for example, if you check out a product category page, like: https://www.byjgk.com/product-category/dresses/ , and then select a dress (e.g.: https://www.byjgk.com/product/the-jersey-maxi-dress-petite-in-sandstone/), you should then see the same featured which was on the category page also appear as the first image on the product page as WELL/(in addition to the other 3 images that are there).
Normally, that's how the image feature works, so there must be some opacity/other problem.
I also did try changing the woocommerce.css file, (which was also a suggestion in the link above, to put this there:
.product.has-default-attributes.has-children > .images{opacity :1;}
but i didn't see any class called exactly that with the word "children".
I also tried to put the "jquery" that was suggested:
$('.woocommerce-product-gallery--with-images').css('opacity', 1);
into the functions.php section, but it said this query had some sort of error, or it didn't like the "$" maybe...
Soooo, I'm at a loss. please help. I see a few people have asked about this on some other forums, but many don't figure it out.
thanks!
Okay, after some trial and error it seems like one of my own plugins was causing this conflict. If anyone is using this plugin, be aware of the potential - i haven't yet played with the settings on this pluging to see if that's changable.
https://wordpress.org/plugins/gallery-slider-for-woocommerce/
I would suggest you to update the theme, plugins and wordpress as well because something is not working properly for you, if the problem continues, start deactivating the plugins to understand what is causing this problem.

Some feature images changes dimension after posting a new blog post

I have posted a new blog. After that in my list of blogs I see the feature images of few posts have changed their dimension to 1 * 1 px. Attached is the snapshot of inspect, the first image which is the latest one has good feature image, but next post does have feature image but just the dimensions are 1*1 px. If you check my website, you will notice there are subsequent posts which have same dimension issue, few of them are good !!
I checked the media where dimensions are good and I have not changed them. I double checked and feature images for blog post is enabled. I uninstalled the jetpack which was one of the suggestion I got from WordPress forum while looking for similar issue.
Astra theme and editor plugin Elementor.
Is there something I am missing ?
Check out website where you will see the issue. Let me know if you need more information.
https://www.patelaalap.com (I have fixed my website now, I don't have the solution, I just removed the feature images and re-added those and it worked. It is a temporary fix but still, I would appreciate any help so I can fix this once in for all.

img src(unknown) - lost images from probable Wordpress migration

I'm developing a site using the Alice Wordpress theme run on wordpress.com. I believe the person working on it previously might have migrated it from a previous setup, but I can't be sure.
The issue is the Alice theme is based on using several custom Post types, including things like "Team" and "Portfolio" and "Clients." There are some very nice looking displays for these things as modeled on the Alice example page. Whenever I add a Featured Image to show up in the background of a box for a "Team Member" or "Portfolio Item," the image is broken, and upon inspection is being referred as img src(unknown). If no Featured Image is set, the box is displayed well, but obviously blank.
I've been digging through the Alice theme .php files, but I cannot find one that specifies this type of modal on a page. I've found the one that creates the pages for each team member dynamically, but can't find where these image sources are getting lost.
All plugins are up to date, all necessary plugins installed for theme. Everything else is working perfectly, just not these featured images.
Any ideas of where to look or how to test?
I had the same issue. If you have installed JetPack plugin you can deactivate the plugin and try to open.
Also this one can you help you in other way: https://jetpack.com/2013/10/15/add-a-default-fallback-image-if-no-image/

Images within a post display fine but clicking on images return 404 not found error

To start with, I am not an expert of any kind. Codes drive me insane. I run a site called: http://nascentarray.com.
I moved the site from one host to another and after the migration, I found that many images were broken. So, I changed the permalink structure:
From: nascentarray.com/post-name/
To: nascentarray.com/year/month/date/post-name/
Everything looked fine until I started getting 404 errors on images interested into the posts directly.
To me more specific, I use two methods to insert images:
I use the Jetpack module of WP to create a gallery in mosaic layout that gives a carousel of images when someone clicks on the gallery.
For some posts, using Jetpack gallery module makes no sense and so, I simple insert individual images between texts using the simple media uploader.
Problem: The problem is with the posts where I do not use the Jetpack gallery module. When I click on a post, the post opens fine and shows all images in it. However, the moment I start clicking on individual images, they start giving 404 error.
Example: http://nascentarray.com/2013/02/08/tallest-buildings-of-2013/
Clicking on any image in the post will return a 404 error.
How to solve this problem? Anyone, please help me. This is so disturbing and I don't have enough technical expertise to deal with this on my own and so I can came here with a hope to find some help from experts.
The posts where you don't use jetpack image gallery module doesn't embed a gallery. Instead, you embed images in your posts individually. When you embed, there's option with image link whether you want to link image with post, attachment page, custom link or source file.
Your images are not linked to source file - instead those are linked to POST ATTACHMENT link.
Once you changed the permalinks structure of your post, the links associated with your image files were not updated and those remained as per previous permalink structure those don't exist now and thus it gives 404 error.
It's solution can be to revert your permalinks structure to previous one (short and immediate solution) and other solution can be writing a short script and update all links of images in batch with their source file or anything else.
Another solution is to use Yoast SEO plugin to generate redirect URL's for old backlinks.
See the guide in this blog post regarding this solution.
I hope this helps and you understand the issue now.
Your permalink structure is incorrect. You need to change it back to nascentarray.com/year/month/date/post-name/
If it's already that way, then you need to double check your folders in uploads. Because if you look at your one page here http://nascentarray.com/2013/06/17/stock-wallet-the-only-wallet-you-will-ever-need/
That image is linked with ../year/month/date/post_name/image_name/
i.e. http://i0.wp.com/nascentarray.com/wp-content/uploads/2013/06/stock_wallet_2.jpg?resize=389%2C176
Obviously your plugin for viewing galleries adds the extra stuff in the URL's.
Where as the link you gave above has just ../post_name/image_name/ Which isn't working with your plugin or linking of the image file.

Re-process all Images in WordPress

I've got a blog that has the highest-resolution version of all its images embedded in the posts, rather than a thumbnail linking off to an image attachment page.
Can you tell me how I can re-process all embedded images so they're output as reduced size thumbnails that link off to their own attachment page (which is WordPress default settings)?
Am I right in thinking I can involve the Regenerate Thumbnails plugin in this?
That was just about what I would suggest, it works wonders, but it will take longer depending on the amount of photos.
Another thing you can do is run the images through an optimizer before posting to speed up load times.
I don't know about this plugin but there is a plugin called auto post thunbnail for wordpress. I have used it and it works great. You just press the generate button and wait till it generates thumbnails for all of your posts, if they have an image in them.

Resources