• Resolved StelleDiPolvere

    (@stelledipolvere)


    Please, First of all, David, You are awesome!!!
    All this work and you have the donate link to a Non-Profit!
    You are an example :)! We just did a donation to a Non-Profit and right now we can’t but I promise before the end of the Year (tax-return-talking) me and my wife will try do the best when we will donate to you cause 😀

    Sorry to bother you here and I really hope that you will help me trough this problem probably is something that can be done thanks to your plugin or probably you have the solution or a future implementation… I really don’t know.

    I was looking for a plugin that was giving me the possibility to modify the way WordPress Handle the creation of URL when uploading an image related to his Attachment Page image or a way to completely disable the attachment page creation.

    Example:
    I’m into the page Our-Team located at mydomain.com/our-team/
    I want to insert an image called david.jpg
    Wordpress will create an attachment page URL at mydomain.com/our-team/david/
    When i’m going to create the page called “david” I can’t and wordpress will assign a URL mydomain.com/our-team/david-2/

    Is there any way to modify the way the attachment page url of the image are created?
    For example having an Url for the image attachment page mydomain.com/images/our-team/david/ ?

    Or is there any way to completely avoid the creation of that permalink URL, a way to tell wordpress do not create attachment page image.

    Thanks in advance for everything! 🙂

    https://wordpress.org/plugins/media-library-assistant/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for the kind words and for your offer to make a donation in support of our work; both are great motivators to keep working on the plugin and supporting its users. Thanks as well for an interesting question and the detailed explanation of your application.

    Permalinks are a fundamental part of WordPress. They are supported by a number of WordPress functions and woven into core logic, themes and plugins. I do not believe it is possible or desirable to avoid generating them.

    They are also generated dynamically, not stored in the database, so replacing them entirely would be very complex. You can, however, change the part of the Permalink that is unique to each item, and this may work for your application.

    If you go to the Media/Edit Media screen for one of your items you will see the “Permalink” value just under the Title and the “Edit” button to the right of the current value. The “editable” part of the Permalink comes from the name/slug of the item. You can edit this value by clicking the “Edit” button. With MLA, you can change the name/slug value in a number of other ways:

    1. In the “Quick Edit” area of the Media/Assistant submenu.
    2. In the “Bulk Edit” area of the Media/Assistant submenu.
    3. In the Settings/Media Library Assistant IPTC/EXIF tab.

    There are some restrictions to keep in mind. WordPress “slug” values must be unique and they are limited to lowercase-alphanumeric and dash (“-“) characters. This means that values like your “/images/our-team/david/” example will be “sanitized” to something like “imagesour-teamdavid”.

    MLA Content Templates can give you some flexibility in generating new name/slug values. If you need to apply more complex rules you can use the hooks MLA provides to add PHP code to your application.

    If you can conform to the slug limitations you can use MLA to avoid the page/attachment page collisions you’re seeing and get the sensible page Permalinks you need.

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding the above suggestions. Thanks for your interest in the plugin.

    Permalinks are a fundamental part of WordPress. They are supported by a number of WordPress functions and woven into core logic, themes and plugins. I do not believe it is possible or desirable to avoid generating them.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Attachment permalink Page URL/Permalink’ is closed to new replies.