About this topic

  • Posted by TheArtofBalance 1 year ago. There are 5 posts. The latest reply is from byron.
  • This topic is not resolved

No tags yet.

  1. I've configured photosmash's default image caption style to "Caption (thumbs & captions link to WP Attachment Page)" on both configuration pages. When the image is displayed on the new attachment page, it's default setting is medium. Is there a way to display the image full size on the new page?

    I've changed my wp media image size settings and my photosmash image size settings, specifically the medium image type. (as instructed in the image sizing video) but I cannot get the image to display full size on the wp attachment page.

  2. Hi,

    The size of the image that is shown in your Attachment Page is controlled in your attachment.php template file. You'll need to set the size in this function: wp_get_attachment_image on that template page. Here's the WP write-up: http://codex.wordpress.org/Function_Reference/wp_get_attachment_image

    Cheers,
    Byron

  3. Hey Byron thanks for the reply,

    The problem is I don't have an attachment.php template, or a single.php template. Photosmash is defaulting (I think) to my Main_index.php template which has no attachment functions (I can't seem to find a .php file that does.)
    I'm using a heavily modified Church Child theme: http://www.studiopress.com/themes/church from studopress.

    Thanks,
    TAoB

  4. I cannot seem to find the wp_get_attachment_image on any of my .php templates. Is it possible one just does not exist and wordpress is some how defaulting the images to display medium?

    If thats the case, I might have to edit the index.php and add the function, though I'm not exactly sure of the code or where to put it...

    Any ideas would be greatly appreciated.

  5. Hi,

    Yes, it's possible that you wouldn't have an attachment.php. In that case, WordPress uses a hierarchy to figure out what template files you do have and uses the next one in the hierarchy...here's the article on that: http://codex.wordpress.org/Template_Hierarchy

    And here's the relevant text:

    Attachment Templates:
    MIME_type.php - it can be any MIME type (image.php, video.php, audio.php, application.php or any other).
    attachment.php
    single.php
    index.php

    I think WP does use medium as the default size. To do something different, you'll probably need some template work. You might try creating your own attachment.php from your single.php. And then modify it to use the relevant code from the Twenty10 template that ships with WP these days.

    Hope that helps,
    Byron

RSS feed for this topic