Support » Plugins » No max image size on page after thumbnail link

  • Resolved ColourDreamer


    I love the new linking to an image on a page feature in WordPress 2.1, but it doesn’t work right and I can’t edit the files. I found the file template-functions-post.php in wp-includes, but I can’t figure out how to work it. It has this $max_dims, but where is that set? I want the max to be no smaller than 450 pixels wide, not sure how tall, and I’d even like NO max.

    I also don’t want it to link to the file itself, I want everyone to stay on my site and template.

    I also want to make the WordPress thumbnail size larger (like 200 pixels tall), how could I do that?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Okay, nothing I change in that file results in anything different in my post. Not even centering the image. What is wrong?

    Okay, it’s true. Nothing I edit in that file changes anything, I even made it so the image shouldn’t even be there. I know it’s the right file, because the source showed the p class=”attachment” code that’s in that file.

    AAAAAAGGGGGGGGGHHHHHHHH! I cannot rest until I get this!!! I want to pull my hair out!!! My blog looks so dumb. Can’t even have new posts because I’m a perfectionist and this is driving me crazy!

    Okay I discovered it is not that file, but a template file (that I didn’t have yet). All is working but one thing, but this now belongs in a different forum, so I’ll post there.

    I am having the same problem!
    Can you tell me how you fixed it?


    i’m having the same problem too. how did you fix it?


    “I also don’t want it to link to the file itself, I want everyone to stay on my site and template.”

    How did you fix this? you mention a new temp file but what code?????

    Please help as I have spent a few days on this now!!!


    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Copy the theme’s index.php file to attachment.php. Edit that theme file, it will be used for all attachment pages.

    This is all explained in the Template Hierarchy part of the codex.

    Thx for quick reply!

    I had read and re-read the Template Section but could not find how to control image files.

    Anyway, I found this article:

    and it solved it for a Post but not a page?

    Can you help me with some code to add for Pages?

    I tried replacing the folloing “post” entries with “pages” but it did not work. Please help. THX

    <img src=”<?php echo $post->guid; ?>” alt=”<?php the_title(); ?>” title=”<?php the_title(); ?>” <?php echo $image_info[3]; ?> />

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Attachments are not Pages or Posts. They’re attachments. So I don’t understand your question.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘No max image size on page after thumbnail link’ is closed to new replies.