Support » Fixing WordPress » How to display a picture as a php page?

  • Hi!

    This is probably a stupid question, but I can’t figure it out. And I probably suck at searching too. 😛

    What I want is that when a user clicks on an image link, like:
    the picture is displayed on a php page. So that I can put a background behind it and a header above it, etc. Hope you understand what I mean…

    Somebody smarter than me please help. 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hiya,

    When you’re uploading the picture, in the space that says “Link to” click the radio button that says “Page” instead of the default “File.” Then you can use attachment.php to format what the background, etc, looks like for that page (it will default to looking a lot like your main page).

    Good luck!

    Thanks for the reply evilbeet!

    What you suggested works great. Only problem is that I like to upload the pictures per ftp in a folder structure and then link the pics there. So, is there any way to edit WordPress so, that when a picture is reguested, the server displays it on a page? Like a redirect or something?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to display a picture as a php page?’ is closed to new replies.