Retrieve a value from Yoast SEO to use to set a default twitter card image honoring overrides
Here’s how I fixed it. If you paste this code in your theme’s functions.php, it will use the image set for Facebook also for Twitter if no image is set for Twitter. If there is not image set for both Facebook and Twitter, it falls back to the default Facebook image in the Yoast settings … Read more