This returns the full image metadata including the source URL. Parse the response and extract:
imageURL: {{1.source_url}}
Then pass imageURL into your Google Business Profile module’s media field.
If WordPress is outputting featured_media, check if it’s already giving you a URL object. Open the execution and look at the full output.
Sometimes the featured image data includes a GUID or URL field already and you just need to pick the right one from the picker instead of trying to map it manually.
If you still get an error, please send a screenshot of the WP output and what GBP is expecting in the error message.
By default, the Wordpress API only returns the ID and not URL of the featured image. This means you have to make a second request (and operation) to fetch the featured image URL.
Instead of doing that, I recommend simply installing a Wordpress plugin that hooks into API requests (e.g.: from your scenario) to return the featured image URL when querying posts!
Hello, thank you for the response! This certainly would’ve worked for me if it wasn’t for the image format, which Google Business Profile recognizes as an Invalid Format, probably the plugin converting the png images into WebP once they are uploaded into the Media Gallery. However, I decided to go for a simpler solution and add a Dall-E module to create an image and then fetch it from the Google Business Profile module.
Hello Sam! Thank you for the response. I installed the plugin, but the Google Business Profile module returned an invalid field, so I decided to uninstall it right away, specially since it wasn’t compatible with the latest WP updates and some users reported it messing with the CSS in their websites.
I decided to go for a simpler solution and add a Dall-E module to create an image and then fetch it from the Google Business Profile module. Thank you anyways for your support!