• I want to specify per Listing Type which image should be grabbed for the social shares. For example for Helper Listings I want it to grab the profile-avatar I guess. The other Listing Types seem to grab the expected image except for these which grab the default I set in Yoast settings for posts that don’t have an image.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • @cherylstash Are the two listing types separate taxonomies or content types where they are shown under SEO>Search Appearance?

    To set the social preview image on a per page basis, you would need to perform the following actions:

      Go to the Edit screen for the page/post
      Scroll down to the Yoast meta box
      Click on the Social tab
      In the Facebook area, click the ‘Select image’ button to browse to and choose an image
      Click ‘Update’
    Thread Starter cherylstash

    (@cherylstash)

    They are two different custom post types entirely. That is, they have completely different identifiers/keys. My Helper Listings use _job_logo for image, my Content Listings use _job_cover. I have been using Custom Field Finder plugin as rec’d by Yoast to find the custom field keys, add them to Yoast > Content Types > Listings > “Custom fields to include in page analysis” > then save but it is still not reviewing or including the results in Yoast individual post data (pulling default social media image I set under Social > Facebook if they cannot find an image). In fact, what I enter under Yoast > Content Types > Listings > “Custom fields to include in page analysis” doesn’t even save between sessions so I am not sure if it is even working or some kind of bug. I do not want to go in and edit these settings in Yoast manually for each listing, in fact I doubt I will even be able to because these listings are added on frontend and I won’t have access to their media library most likely.

    Hey @cherylstash,

    I’ve tested this a bit out.

    With an ACF image field, the image tag isn’t added to our analysis, so that seems a bug on our side and that’s what you are running into as well.

    With a URL field or text field, the URLs are added to our analysis but that wouldn’t make our plugin use the image for the social output. It seems to me that we (Yoast) should enhance our plugin to pick up an image field better to include it as an actual tag so our plugin can then find that image as it would be in your post content and use it for social sharing.

    I’ll bring this to the attention of the right people as a feature request/bug fix.

    @jeroenrotty any update on this bug?

    Hey Marcus,

    Thanks for reaching out again.

    Yes and no. I did add a +1 to an existing feature request we have internally that reads that we should use images in custom fields for social sharing too, but there’s a caveat.

    As these are custom fields, we don’t know if your theme or integration actually uses the image on the front-end of the post/page. So if you have an ACF Image field configured for your posts post type, and you configure an image in it. With the ACF content analysis for Yoast SEO plugin will pick up the image to be included in the SEO feedback analysis, but it won’t be triggered or used for OG or other social sharing meta tags.

    If you want to custom-built any integration or output, I recommend checking out our developer blog which: https://developer.yoast.com/

    Thanks for the reply @jeroenrotty . This is logical, any text field where we use an image url is not being recognized as am image.But my case is the field which is of type ‘Image’ in ACF.

    I am using ACF blocks, when i use the text field or textarea in the blocks, they are recognized as content in Yoast content analysis, but if i add an image to a field type ‘image’ in the block, Yoast keeps telling me there are no image in the page content. Please advise.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Grab custom image field’ is closed to new replies.