• Sometimes I upload large numbers of images to one page. The multi-uploader is great for that. But some of the pictures fit the page and some are too big and must be resized. WordPress does a great job at resizing, too.

    Here’s the thing: the pictures that fit, don’t need to be linked to anything. Why should they? Click to see the exact same picture. BUT, the pictures that are too big for the page DO need to be linked to the full size version.

    Is there a way to set WordPress to do this automatically? At the moment I have to manually go through and set the too-big pictures to link to media, or make sure the full-size pictures are not linked. If WordPress could just KNOW to link to full-size when posting large-size and not link at all when full-size fits, that would be great.

    I cannot find a setting to change this. If there is one, or if there is some sort of code or something I can add, please let me know!

    If there is no such setting, then may I request the moderator please move this post to the Requests and Feedback forum?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Rushin

    (@rushinparmar)

    You can change this setting by adding following code in your theme’s functions.php

    update_option('image_default_link_type','none');

    Thread Starter janew

    (@janew)

    Ah yes, that seems to have worked. Thanks for that.

    Would still be nice if WordPress could figure it out based on size of the image, but this will work just fine until that happens.

    And to all those who would get on my case for editing the functions.php, fear not, as I am using a child theme and have edited the child theme’s functions.php!

    Thanks again!

    Thread Starter janew

    (@janew)

    Is this still valid? It has worked fantastic for me since implementing a year ago, but last night, directly after upgrading from 4.3 to 4.4, I uploaded 45 pictures and they were ALL linked! Ugh.
    After going in and uploading a single, unlinked picture, I was then again able to upload bulk photos unlinked. And again this morning I am uploading unlinked photos. So maybe just a glitch last night? Maybe it reset itself after the upgrade and needed a kick to remember what it was supposed to do? I dunno….
    Been working so well for so long, through so many updates and upgrades over the year (my WP is always up to date). Probably just a glitch, right?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘media upload links’ is closed to new replies.