For some reason on my attachment page template (http://capa.furniture/?attachment_id=1494) I am getting the url of the reduced size image. I do not know why. I am not getting the thumbnail full size but a smaller size as you can see here -> http://cl.ly/image/3E1x1q3m070u

How can I make it so that the attachment page shows the full image link in the html so the quality is better?

1 Answer 1


What's the code that shows the image? Maybe try:

<?php echo wp_get_attachment_image( $post->ID, 'full' ); ?>

This works on the attachment page in my gallery theme.

  • 1
    The theme I'm using uses this '<?php the_content(); ?>'. I cannot find what is creating the output. Mar 12, 2015 at 20:58
  • In what file did you see the_content()? Mar 12, 2015 at 21:38
  • the_content creates the output - that's the function that displays post content
    – butlerblog
    Mar 13, 2015 at 4:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.