How to query details of images in gallery that is attached to a post

Query for image attachments would be something like this (taken from Get The Image plugin/extension) with get_children(): $attachments = get_children( array( ‘post_parent’ => $args[‘post_id’], ‘post_status’ => ‘inherit’, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => ‘ASC’, ‘orderby’ => ‘menu_order ID’ ) ); Then you can loop through array and retrieve URLs with wp_get_attachment_image_src() which will … Read more

Is it possible to determine when user is at “Media > Add New” vs “Post > Add an Image”

I answered this for you in the comments of your previous question. …you can use the filter that @Backie suggested above (intermediate_image_sizes_advanced), and in the hooked function check for a field in the post collection named _wp_http_referer. It tells you where the upload request came from. If _wp_http_referer contains “media-new.php”, you can return an empty … Read more

Is there Photo Categories?

Technically you can’t put images in category, because they are not posts by themselves. You can create Custom Post Type for your images, etc, etc (might be overkill in your case). Personally I like to use Links for such stuff. It is ready-made, easy to add images to (just URL), supports own categories and can … Read more