WP: Full Image in Attachment Page

WordPress 2.5 Hack

codeThis refers to:
In Blog Entries: When linking images to a page [attachment], this hack will load the full sized image instead of a smaller image.

See example of full size image page attachment.

In the /wp-includes/ folder, Find:
post-template.php

In post-template.php, look for:

	// show the medium sized image representation of the attachment if
	available, and link to the raw file
	$p .= wp_get_attachment_link(0, 'medium', false);

Change ‘medium‘ to ‘full

Save and upload, test it.

Credit: NeedCoffee.com

. . . . . . . . . . . . . .

cup

Donna Young

Related posts

About the Author

Donna Young

Donna Young

Currently not online as often, but please leave a comment if you have one. [spring cleaning] [garden planning] Signed on April 9, Updated April 10, Updated April 20

3 Responses to “WP: Full Image in Attachment Page”

  1. Cool! I should try this with the zebu poo. :mrgreen:

  2. Interesting. :neutral:

  3. Applijuice you could, but I’ll be wearing dark glasses when viewing the poo. :cool:

    Elaine, it sure is interesting isn’t it. :lol:

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strong>