Skip to content
This repository has been archived by the owner on Nov 12, 2021. It is now read-only.

PDF cover images are incorrect #10

Closed
waynegraham opened this issue Oct 10, 2017 · 1 comment
Closed

PDF cover images are incorrect #10

waynegraham opened this issue Oct 10, 2017 · 1 comment
Assignees
Labels

Comments

@waynegraham
Copy link
Collaborator

When a PDF is attached to a page, it's cover isn't always associated with the object. Need to debug on what's going on (and why incorrect images are getting used).

@waynegraham
Copy link
Collaborator Author

This code takes the first attachment that is a PDF. This is fine, except when you have added an attachment (e.g. you replace the existing PDF in the page). However, WordPress treats the first document (which has been removed from the page) as it's first attachment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant