Support » Plugins and Hacks » Bypassing Media File links to their Attachment page
3 years ago
Is their anyways to bypass files that are already linked on pages and have them open their attachment page instead?
Need a function or call to bypass all direct media file links and have them open their respected attachment pages
Update for this – I have found wordpress codex resource to assist with this problem, but it has not been completely solved.
Function for direct media file links falls under ” Wp_Get_… “
That can be found in WP-Includes/post-template.php
Functions for attachment page files falls under just ” Get_…
Which can be found in WP-Includes/link-template.php
Basically, you are going to force attachment pages on the media file links.
I’ll update this post as i continue to solve the problem.