Blog

How to Add Images to Blog Posts Automatically

To add images to blog posts automatically, write an image marker under each heading in your WordPress draft, let Pin Magic generate the images in Google Flow, then press Insert all. The extension uploads each image to your media library, gives it a file name and alt text, places it under the right heading and sets your featured image.

By Muhammad Ali Qureshi7 min readPublished: 7 October 2026
10+ pins ready1000×1500

What "automatic" means here

It does not mean the tool guesses what your post needs. You decide what each image should show by writing a prompt. Automatic means everything after that: typing the prompt into the image tool, collecting the results, uploading, naming, describing and placing. You supply the ideas, the extension does the clerical work.

Before you start

You need:

  • A WordPress site where you can edit posts and upload media (Gutenberg block editor).
  • Chrome, Edge or Brave with the Pin Magic extension installed.
  • A Google account signed in to Google Flow.
  • A draft with headings.

Step 1: Add an image marker under each heading

For each section, add three things in this order: a short description of the image, optional bullet points of details to include, and the marker line. A marker looks like this:

<!-- IMG: section-01 | keyword: small kitchen storage | heading: Use vertical space | alt: Wall-mounted shelves holding jars in a small kitchen | prompt: A bright small kitchen with wall-mounted shelves holding labeled jars, natural light, realistic photo style -->

The fields are:

  • section-01, section-02... the order of the section. The top image uses featured.
  • keyword: the topic phrase for the image.
  • heading: the section heading.
  • alt: the alt text you want.
  • prompt: what to generate.

Add one marker for the featured image using featured in place of the section number.

Step 2: Review the prompts in the side panel

Open the Pin Magic side panel on the post editor. The Prompts tab lists everything it found. Read each prompt. You can copy one, rescan if you edited the post, and press Lock when the list is final. Locking stops the list from refreshing so your batch does not change halfway through.

Step 3: Run the batch in Google Flow

Open the Flow tab and set:

  • Parallel tabs: 1, 3, 5, 8 or 10 at a time. Start low, since more tabs generate faster but can be less stable.
  • Delay: a random wait between actions so the run behaves like a person working.
  • Download size: 1K original, or 2K or 4K upscaled.

Press Start batch auto-run. Pin Magic opens Flow, enters each prompt, generates, waits and downloads. If something fails, use Resume batch to continue or Stop batch to pause. Featured images are made in 16:9 and section images in vertical 9:16.

Step 4: Check the downloaded images

The Images tab shows every downloaded image in a gallery. Click one to view it full size. If an image is wrong, adjust its prompt and run that section again before inserting.

Step 5: Insert all into WordPress

Press Insert all. For each section the extension:

  1. Uploads the image to the media library.
  2. Uses a file name built from the keyword and heading, so it is readable.
  3. Sets alt text and media title from the same wording.
  4. Replaces the description, bullets and marker with a centered, full-size image block.

For the featured image it uploads the file and sets it as the post's featured image, then removes its marker. When it finishes, scroll the post to check the result.

Step 6: Review alt text and placement

Automatic insertion saves the clicking, not the thinking. Read each alt text and make sure it describes what is in the picture. Google's guidance on AI-assisted content says to review generated content, including alt text, before publishing. Also check that each image sits under the right heading and that nothing is cut off on mobile.

Troubleshooting

  • No prompts found. Make sure the marker format is exact and that you saved or rendered the whole post. Press Rescan.
  • A section was skipped. The marker may have been edited. Fix it and run Regenerate for that section.
  • An image was not inserted. Check that the marker text is still in the post. Insert uses the marker to find the right place.
  • Flow is slow. Lower the number of parallel tabs, or try a longer delay.
TipSave a marker template in a text file. For each new post, paste the template, change the keyword, heading and prompt, and you are ready to run.

Frequently asked questions

Can I add images to old posts automatically?

Yes. Add markers to the old post and run the same steps. See how to update old blog posts with new images and links.

Does it work for pages as well as posts?

The extension works on post and page edit screens in WordPress.

Will it overwrite my existing images?

It replaces the marker blocks only. Your other content is left alone.

What if I want my own photos?

Use the Instagram capture tool or upload manually for those sections.

Conclusion

Adding images automatically comes down to a repeatable pattern: marker, review, batch, insert, check. Once your marker template is ready, a post with many images takes minutes of attention instead of an hour of clicking. For more on the Gutenberg side, read AI images in WordPress Gutenberg, step by step.

MQ
Muhammad Ali QureshiFounder of Pin Magic. Four years in the Pinterest field.
Profile

Ready to turn your posts into pins?

Paste a blog link and Pin Magic designs the pins for you.

Create account
Keep reading

Related pages