change featured image as article image
-
Hello,
Right now Instant Articles is using our Featured Image as the main image of the IA in Facebook. I would like to use the following instead of the featured image:
<div class=”post-content single-image”>We are using a custom field to set this image value, and I know in this post you discussed ACF, https://wordpress.org/support/topic/add-custom-fields-to-instant-article/, but I am afraid I still don’t understand how I would go about changing:
{ "class": "ImageRule", "selector" : "div.wp-caption", "properties" : { "image.url" : { "type" : "string", "selector" : "img", "attribute": "src" }, "image.caption" : { "type" : "element", "selector" : "p.wp-caption-text" } } }Or would I simply add in:
`{
“class”: “ImageRule”,
“selector” : “div.single-image”
}, `IA is also not capturing any of our other images within the article, it only shows the Featured Image. (e.g., <div id=”attachment_16748″ style=”width: 710px” class=”wp-caption aligncenter”>
<p class=”wp-caption-text”>)
Is this the same rule I would adjust to display all images within an article?
Thank you in advance,
Donna
The topic ‘change featured image as article image’ is closed to new replies.