Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First image isn't properly resized #6

Closed
ajaydsouza opened this issue Mar 29, 2015 · 1 comment
Closed

First image isn't properly resized #6

ajaydsouza opened this issue Mar 29, 2015 · 1 comment
Assignees
Labels

Comments

@ajaydsouza
Copy link
Contributor

As reported in this WordPress thread: https://wordpress.org/support/topic/thumbnail-not-square-and-not-centered-vertically?replies=14#post-6754677

Appears that when pulling the first image URL, the plugin doesn't pick the correctly resized thumbnail.
Potential fix would be to guess the attachment ID from the URL and then find the thumbnail.

Sample code to get Attachment ID from the URL:
http://philipnewcomer.net/2012/11/get-the-attachment-id-from-an-image-url-in-wordpress/

@ajaydsouza ajaydsouza self-assigned this Mar 29, 2015
@ajaydsouza ajaydsouza added the bug label Mar 29, 2015
@ajaydsouza ajaydsouza changed the title First image First image isn't properly resized Mar 29, 2015
@ajaydsouza
Copy link
Contributor Author

Fixed with 2e8c79a

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

No branches or pull requests

1 participant