Instant Articles do not show images and videos within the post content
-
Hi, I am using this plugin for my website https://tomatoheart.com but even after lot’s of trial, I am not able to make it display content images on Instant Articles for Facebook mobile app.
Though it shows the first featured image but not the images that are inserted in the content.To understand what I mean to say, please look at these snapshots.Link:https://i.imgur.com/J09WUYD.jpg
In this snapshot , you can see “Facebook” is able to grab the featured image( under red rectangle). The same image is also visible as the header image when you see the main article.Link: https://i.imgur.com/gqF9UDh.jpg
In this snapshot, you can see that – images are not visible under the body of the content ( missing image shown under red rectangle.). In similar ways , videos are also missing from the body of the content.Now I am sharing one more snapshot from one RSS feed grabber called “Feed Demon”, Here you can also see that the first “featured image” is visible but images under content are missing. Here is the snapshot
After brainstorming a lot, it seems that the H2Rule is being applied (that turns the h6 into h2), and the image is lost in the process.
See, Here is one code snippet for the posted content image from my actual website post:
<h6><a href="https://tomatoheart.com/wp-content/uploads/2016/05/math-problem-terrorist-flight-tomatoheart.jpg"><img class="aligncenter size-full wp-image-918" src="https://tomatoheart.com/wp-content/uploads/2016/05/math-problem-terrorist-flight-tomatoheart.jpg" alt="math problem terrorist flight tomatoheart" width="640" height="404" srcset="https://tomatoheart.com/wp-content/uploads/2016/05/math-problem-terrorist-flight-tomatoheart.jpg 640w, https://tomatoheart.com/wp-content/uploads/2016/05/math-problem-terrorist-flight-tomatoheart-300x189.jpg 300w" sizes="(max-width: 640px) 100vw, 640px" /></a>Graphical Image showing math equation</h6>
After converting this into Facebook Instant Articles,this code gets transformed into this:
<h2><a href="https://tomatoheart.com/wp-content/uploads/2016/05/math-problem-terrorist-flight-tomatoheart.jpg"></a>Graphical Image showing math equation</h2>
So,Perhaps I need to add some custom rules to make this transformation work. I also noticed that perhaps these missing image are not wrapped under <figure> , how can I make it do so.
In short, I am looking for a working custom rule so that it can dispaly content images under FB Instant Articles.
My actual FBIA feed URL is: https://tomatoheart.com/feed/instant-articles and I am currently using the latest version ( 4.5.2) of WordPress.
Please help. Thank you.
- The topic ‘Instant Articles do not show images and videos within the post content’ is closed to new replies.