Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jukka K?hk?nen

    (@elkesan)

    Second problem looks no problem- reason Wp automatically scale it image. So filename is also “scaled”. So it is not problem.

    But first problem is really big problem. It really big problem. If load eg. 100 images, it take many days edit all permalink. So how force MLA use filename as permalink?

    Plugin Author David Lingren

    (@dglingren)

    It’s good to hear from you again; it has been a few years since your last topic.

    You wrote “When adding this image using MLA…” I want to clarify that MLA uses core WordPress functions for uploading Media Library Items. The Media/Upload New Media screen is generated and processed by WordPress, not MLA. MLA adds a “Bulk Edit Area” to this screen and processes anything entered there after WordPress completes the upload process.

    During the upload process, WordPress (not MLA) generates a unique permalink/slug value. WordPress also generates a Title based on image metadata or the item file name. For “mass import” you can change the Title by defining an IPTC/EXIF/WP mapping rule or by entering a template in the Bulk Edit Area. You can also define a mapping rule to change the Name/Slug value during the upload process.

    As you have discovered, the Title and permalink can be changed on the Media/Edit Media screen, described here:

    Edit media page

    There it says:

    Permalink

    This is the URL of the media attachment page. There is also a link to view the attachment page. Next to this, there may be a button to edit the permalink—if there isn’t, you can change the permalink by activating ‘Slug’ from the screen options and changing the slug’s value.

    You can also define a mapping rule to change the Name/Slug value during the upload process or when processing the mapping rules. The permalinks you give in your post usually go to a “Media Page” defined by your theme. In your site they go directly to the image file. This is unusual and may be a feature of your theme. I am not sure that changing the permalink value will change this behavior. You have edited some permalinks manually – does this fix the problem? Can you give me an example of a changed permalink? Do I understand correctly that you want the permalink to be something like https://elkesan.fi/10876330? If you want to try the mapping rule approach I can give you more specific guidance.

    The image you gave as an example, 10876330.jpg, is very large – 4937×3862 pixels. By default, WordPress “scales” images larger than 2560×2003 pixels as described in this blog post:

    Introducing handling of big images in WordPress 5.3

    In that post you can find filters for changing the scaling threshold or disabling the scaling function. The current MLA version does not have a user interface for these filters, but there are several other plugins that have them.

    In the [mla_gallery] shortcode you can link to the original file by adding a link=original parameter to the shortcode.

    I hope that gives you a better understanding of how WordPress handles the upload process and the limited role MLA plays. I am marking this topic resolved because I have answered your questions but please update it if you have problems or further questions regarding the above explanation or if you want to try a mapping rule. Thank you for your long-time interest in the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.