Skip to main content
Best answer

I cannot find "Attachment ID" field to insert in a “Featured media” field

  • May 25, 2022
  • 2 replies
  • 138 views

I’m trying to create a new Wordpress post every time a Facebook page post occurs. Additionally, I would like to set a Facebook post picture as a Featured image for my Wordpress post.

Prior to creating a new Wordpress post, I successfully upload a picture as a Wordpress media.

But then, when I create a Wordpress post, I don’t know what to put in a “Featured media” field. E.g. when I put “Media details file” from an upload step, it creates a post with an empty Featured image.

I tried to apply advice from this thread 

 but I cannot find “Attachment ID” field in an upload step anymore.

Which data from an upload step should I use?

Best answer by Troy Tessalone

Hi @zkriz 

Good question.

Add a Custom Featured Image to your WordPress Post

In order to take an image from a previous step (like your Trigger, for example) and add it as a featured image on your post, you have to use 2 WordPress steps.

First, you use the 'Upload Media' step to add the image to your WordPress website:

Then, on your 'Create Post' step you make use of the image you just uploaded, by selecting "Use a Custom Value" for the 'Featured Media' field and then using the "Attachment ID":

 
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • 34020 replies
  • Answer
  • May 25, 2022

Hi @zkriz 

Good question.

Add a Custom Featured Image to your WordPress Post

In order to take an image from a previous step (like your Trigger, for example) and add it as a featured image on your post, you have to use 2 WordPress steps.

First, you use the 'Upload Media' step to add the image to your WordPress website:

Then, on your 'Create Post' step you make use of the image you just uploaded, by selecting "Use a Custom Value" for the 'Featured Media' field and then using the "Attachment ID":

 

jesse
Forum|alt.badge.img+9
  • Architect
  • 1348 replies
  • June 3, 2022

Hey @zkriz! Checking in to make sure you were able to successfully map your Attachment ID into your Wordpress step to get your featured image uploaded correctly. Let us know!