Penci Design replied
Hi,
I checked your image attachement . It seems that short link have mess ( sin adjuntar ) http://prntscr.com/ndauc4
Best Regards,
PenciDesign
Many thanks, that'll do the trick.
What I still don't understand is why the shorter url makes use of the pdf.php template but the other one appears in a totally different manner when attachment.php had the same code.
Sorry I didn't myself clear.
The problem is that I've created a template for the attachments pages but the theme is not using it for the url that WP assigns to them when the files are associated with a post or page.
I.e. I upload a file through the media library, and its own attachment page has the structure domain/media, this page uses the attachment.php template.
After that, when I add the same file on the content of a post or page, and I set that it is linked to the attachment page, the url of the link is like domain/post/media and this page uses a different template.
I need this pages to use the attachment.php template or make that this link directs to the main url (domain/media instead of domain/post/media). Because manually changing the url each time is not an option.
Thanks for your help.
Hello there,
I've created a template for attachment pages but while the theme uses it as expected for its "main" url (mainsite/attachmentpage) it does not with the url related to the page/post where the media is inserted (mainsite/page/attachmentpage).
I've created pdf.php (since I'm using it with this files), attachment.php and single-attachment.php files but to no avail.
Many thanks.
Want to join this conversation or access attachments? Sign in first.
Open your ticket archive, review validated licenses, and continue product support conversations from one customer portal.