WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Modifying post image output. (2 posts)

  1. rwwood
    Member
    Posted 4 years ago #

    I'm trying to figure out how to overwrite the function that outputs images that are used in posts. Essentially all I'm looking to do is wrap that output in div tags. I did it for the img_caption_shortcode function that outputs images for pages, but for some reason posts don't use the same function. As a matter of fact, the html for the post gets stored in the database, including the img src, etc, so whatever needs to be modified would appear to be an admin file/function.

    Any help would be appreciated.

  2. rwwood
    Member
    Posted 4 years ago #

    I ended up using modified code from the "extra image tags" plugin in my function.php file to resolve this.

Topic Closed

This topic has been closed to new replies.

About this Topic