post_parent ) { ?> post_parent ); ?> »
id="post-">
post_parent ) {
$attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
foreach ( $attachments as $k => $attachment ) {
if ( $attachment->ID == $post->ID )
break;
}
$k++;
if ( isset( $attachments[ $k ] ) )
$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
else
$next_attachment_url = get_permalink( $post->post_parent );
}
?>
', 'notepad-theme' )); ?>
ID, array( 775, 9999 ) ); ?>
post_excerpt ) ) : ?>
read more »%5$s × %6$s', 'notepad-theme' ), get_the_time( 'l, F jS, Y' ), get_the_time(), wp_get_attachment_url(), esc_attr( __('Link to full-size image', 'notepad-theme') ), $metadata['width'], $metadata['height'] ); ?>