Permalink of Attachment Page

Hi,

I have extra Attachment Pages for my images like:


The Permalinks of these pages are very long. It uses the Permalink of the post + /attachment/ + Title of the photo

Is is possible to shorten the permalink of the Attachment Pages with this structure:
https://one-million-places.com/bilder/category/picture-title

So for the 2 Attachment Pages above it should be:
https://one-million-places.com/bilder/mauritius/kirche-cap-malheureux-06
https://one-million-places.com/bilder/luxemburg/luxemburg-kirchberg-01

Is it possible to add a function for this to my X Child Theme?

Michael

Hey Michael,

It is technically possible to add custom functionality in the child theme. However, the WordPress attachment permalink is not handled by any of our products so custom development would be needed and that is not covered in our product support.

Maybe this article might help: https://wpsites.net/wordpress-tips/5-ways-to-change-default-image-links/

If it does not help, please consult with a third party developer.

Thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.