Add Media from Wordpress Blog Post into Google Business Profile Update Post

:bullseye: What is your goal?

Hello, I’m looking to add Media (image) from Wordpress Blog Post, specifically the post featured image, into a Google Business Profile Update Post

:thinking: What is the problem & what have you tried?

I’ve tried using every featured media variable shown into the available items for the feature, but all returns an error.

:link: Share a link to your scenario

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

Just so you know that WordPress featured image IDs aren’t URLs, they’re just attachment IDs.

On the other hand, Google Business Profile needs an actual image URL, not a reference number.

So here’s what you need to do after your WordPress module pulls the featured image ID, add an HTTP GET module to resolve it to the actual image URL:

URL: https://yoursite.com/wp-json/wp/v2/media/{{featured_media_id}}

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.

1 Like

Welcome to the Make community!

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!

Here is an example of such a plugin: REST API Featured Image. Basically what it does is to add a new field to posts/pages, that contains the URL of the featured image[1]. You can view the source code of this plugin here.

Hope this helps! If you are still having trouble, please provide more details.

@samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!


  1. Technical details:
    register_rest_field() – Function | Developer.WordPress.org ↩︎

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!

1 Like