'attachment',
'posts_per_page' => -1,
'post_parent' => $post_id,
'post_mime_type' => 'image',
'order' => 'ASC'
));
?>
'image_popup', 'post' => $post->ID);
$url = add_query_arg($query_args, admin_url());
?>
ID, 'anno_img_edit');
$description = $attachment->post_content;
$caption = $attachment->post_excerpt;
$alt_text = get_post_meta($attachment->ID, '_wp_attachment_image_alt', true);
$display = get_post_meta($attachment->ID, '_anno_attachment_image_display', true);
if (empty($display)) {
$display = 'figure';
}
//@TODO worth storing all this data in a single meta row as a serialized array
$label = get_post_meta($attachment->ID, '_anno_attachment_image_label', true);
$copyright_statement = get_post_meta($attachment->ID, '_anno_attachment_image_copyright_statement', true);
$copyright_holder = get_post_meta($attachment->ID, '_anno_attachment_image_copyright_holder', true);
$license = get_post_meta($attachment->ID, '_anno_attachment_image_license', true);
$url = get_post_meta($attachment->ID, '_anno_attachment_image_url', true);
$file_url = wp_get_attachment_url($attachment->ID);
$link = get_attachment_link($attachment->ID);
$img_size = get_post_meta($attachment->ID, '_anno_attachment_image_size', true);
if (!$img_size) {
$img_size = 'thumbnail';
}
?>
|
ID, 'anno_img_list');
?>