Support » Fixing WordPress » Attachment Permalinks (broken?)

  • If you view this page: You can see the Attachments: section, and click to view or download the attachments accordingly. But if you click to view the attachments within the individual updates….it goes to the page where you SHOULD be able to view the attachments…but instead… you find nothing. Any ideas as to why this is like this? Or how to remedy this problem?

    WONDERFUL theme by the way!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Ah I see the problem. The link is using the loop.php template file, which looks for ticket status (which an attachment doesn’t have). So a quick fix would be to change how it links to attachments.

    If you you look in updates.php, and find the function quality_update_ticket_attachment and change the line:

    $updates[] = apply_filters( 'quality_comment_attachment_added', sprintf( __( 'File Attached: <a href="%s">%s</a>', 'quality' ), get_permalink( $attachment ), get_the_title( $attachment ) ) );


    $updates[] = apply_filters( 'quality_comment_attachment_added', sprintf( __( 'File Attached: <a href="%s">%s</a>', 'quality' ), wp get attachment url( $attachment ), get_the_title( $attachment ) ) );

    Let me know if that fixes it. I’ll be sure to update it for the next release.

    I did make the change, but it still outputs the same attachment permalink. So…no change. Hhmmmm, any other ideas?

    It won’t make the change for tickets/updates that have already been created. You need to test it on new updates.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Attachment Permalinks (broken?)’ is closed to new replies.