Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Attachment Page Breadcrumb #279743

    Unfortunately access to the site is restricted to our network only and as I do not have administrative priveleges I am unable to create an admin, but for anyone else with a similar issue I was able to create an attachment.php file that I added into the enfold theme’s folder that redirects all of the attachment pages to the actual file URL so upon clicking it opens up the PDFs on the site instead of opening up a page that has a link to the pdf. Here is the code I used.
    <?php wp_redirect( wp_get_attachment_url() ); exit; ?>

    As for the weird breadcrumb on the attachment page we just figured we wouldn’t worry about it since with the redirect nobody will ever see those attachment pages anyways. Thank you for your help.

Viewing 1 post (of 1 total)