WordPress.org

Ready to get started?Download WordPress

Forums

Making images from URL's (without image tag markup) in content (2 posts)

  1. md1984
    Member
    Posted 2 years ago #

    Hello,

    I want to retreive image URL's from "the content" (without the image tag markup) and add the image tag markup to each URL "the content" contains (by code).

    For example:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Making an image from the first URL works, but not from the second URL. This script displays two images from the same URL, while it should display two separate images.

    Also the content of the array $url is weird. Only the first URL is stored correctly within the array.

    Can anybody help me?

  2. md1984
    Member
    Posted 2 years ago #

    http://pastebin.com/gQH77rLY

Topic Closed

This topic has been closed to new replies.

About this Topic