WordPress.org

Ready to get started?Download WordPress

Forums

Opening uploaded photo with ADs on top (4 posts)

  1. broysox
    Member
    Posted 6 years ago #

    I know this is possible, but can't understand how to do this:

    I have images uploaded onto my blog, but would like the code so that when I click on the image, it appears as a page, rather than the image, with ADs on the top. I don't want to go through every image and make a new page for each individually, so I was wondering if there was an easy way.

    Maybe something like this:

    <a href="http://www.sample.com/uploadedimage/image.jpg/

    I would like a template that just displays the image and an AD. Thanks!

  2. whooami
    Member
    Posted 6 years ago #

    take a look at attachment.php

  3. broysox
    Member
    Posted 6 years ago #

    Where would that be located?

  4. whooami
    Member
    Posted 6 years ago #

    an example of one comes with the default theme -- its purpose is to display images that you have uploaded via the backend on their stand alone page.

Topic Closed

This topic has been closed to new replies.

About this Topic