'; $url = get_edit_post_link( $post->ID ); $link = $link = '' . __( 'Edit', 'mla-child-theme' ) . ''; $after = ''; $edit_post_link = $before . apply_filters( 'edit_post_link', $link, $post->ID ) . $after; /* * The attachment's ID must be set as an HTML query parameter */ $post_id = isset( $_REQUEST['post_id'] ) ? $_REQUEST['post_id'] : 0; if ( $post_id ) { $query = new WP_Query( array( 'p' => $post_id, 'post_type' => 'attachment', 'post_status' => 'inherit', 'orderby' => 'none', 'update_post_term_cache' => false ) ); } else { echo '

ERROR: No Post ID

'; the_content( __( 'Continue reading ', 'twentytwelve' ) ); return; } if ( $query->have_posts() ) { $page = $post; // in case we need it later $query->the_post(); // simulate "the loop" } else { echo '

ERROR: No Attachment Object

'; the_content( __( 'Continue reading ', 'twentytwelve' ) ); return; } ?>

Published at %4$s × %5$s .', 'twentytwelve' ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( wp_get_attachment_url() ), $metadata['width'], $metadata['height'] ); ?>
ID, $attachment_size ); ?> post_excerpt ) ) : ?>
post_content ); ?>