• I think this is next to impossible, but…

    Given: post with single attachment of an image. The image is manually captioned when inserted from media library. Manual captioning consists of title of the post and a subset of categories to which the post is assigned.

    Required: when user changes categories of a given post, update the caption for the inserted image programatically, i.e., no manual editing of html in the post. I want to cycle through the posts and update all of the captions for images attached. Ideally, would like to create a function that could be hooked to when a post is edited.

    TIA,

    Is this possible? Do I have to parse the post’s html to do it?

  • The topic ‘Hook Question : Change a caption in a post with attachment’ is closed to new replies.