WordPress.org

Ready to get started?Download WordPress

Forums

Replacing attachment url with image hotlink (1 post)

  1. akis
    Member
    Posted 2 years ago #

    Hi,

    I'm wondering if it's possible to automatically replace all links to attachment pages with image hotlink.

    Some filter with preg_replace under the_content I suppose.

    /2011/08/17/post-permalink/attachment-url/
    to
    /wp-content/uploads/file.jpg

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.