Here are some notes and comments on the topic. Additional entries will be added as new points of interest or issues arise that are deemed worth sharing.
Open Graph Conflict with EWWW Image Optimizer Plugin
In the context of posts with a featured image, Genesis should use it for Open Graph output. If there’s no featured image available, the system should use the configured default image.
However, when ‚Easy IO‘ is enabled, a problem arises with the Open Graph output related to featured images. It consistently defaults to using the default image, even when a featured image exists. If no default image is set, no image is displayed.
This issue is attributed to the ‚genesis_get_image‘ function, which relies on ‚wp_get_attachment_image_src‘ from WordPress to fetch image URLs. ‚Easy IO‘ CDN feature seems to interfere with the Open Graph functionality of the Genesis Framework. The ‚genesis_get_image‘ function fails to retrieve the image URL, resulting in its absence in the Open Graph HTML output. This problem is not observed when ‚Easy IO‘ is disabled, indicating a compatibility issue between these features.
We’re providing a code snippet addressing this issue.
Bug Report (2024-01-23)
Bug Report: Genesis Theme Failure with CDN URLs in Open Graph Image URL Tags
Issue: The Genesis theme does not correctly process Open Graph image URL tags for featured images when using CDN URLs, particularly noted with the EWWW Image Optimizer plugin's "Easy IO" CDN.
* The issue is specific to the Open Graph image URL tags for featured images within the Genesis theme.
* Testing was conducted using Monochrome Pro, various custom child themes, and specifically with the EWWW Image Optimizer plugin, focusing on its "Easy IO" CDN functionality.
* The Genesis theme is designed to use the featured image for Open Graph tags. However, when a featured image is hosted on a CDN URL, this default behavior is disrupted. Instead of utilizing the featured image, the theme either defaults to a predefined image, or, if no such default image is set, it fails to output any Open Graph image tag at all.
* The issue stems from the theme's use of the 'attachment_url_to_postid()' function in WordPress, which is incompatible with CDN URLs. For featured images with CDN URLs, this function returns a value of 0, resulting in the absence of an Open Graph image tag output.
Impact: The Genesis theme's inability to correctly display featured images in Open Graph tags when CDN URLs are used, significantly affects the functionality and social media integration of websites using this theme.