Hello. I'm trying to use WP attachment/image functions to manipulate images whose paths I get from a custom field. I need to retrieve the ID for each image based on this path. I'm assuming I need to write a SQL query but I don't have the expertise. Can anyone give me a hand or some direction?