Going a bit nuts here. But it’s real tricky grabbing an attachment ID from the database, based on nothing but an in-post URL. Because WP adds dimensions, “edited” or “scaled” suffixes, etc.

Going a bit nuts here. But it’s real tricky grabbing an attachment ID from the database, based on nothing but an in-post URL. Because WP adds dimensions, “edited” or “scaled” suffixes, etc.
