Skip to content

Cookbook › Images

Write an image caption and description

Images1 minuteChangesTested 15 Oct 2026
Paste into ChatGPT or ClaudeSet the caption of the beach photo to “A seaside morning” and its description to “The coast at Saltburn, at sunrise.” Keep its alt text.

Changes your site. Standard asks you first in wp-admin; Trusted does it directly.

  1. Your assistant finds the image with search_media.
  2. It changes the caption and description through the REST API with write_rest_route, and reads them back.
  • “Write captions for the five images in the spring post.”
  • Alt text is changed separately: see Set an image’s alt text.