'gallery',
'post_status' => 'publish',
'name' => substr(basename( $_SERVER['REQUEST_URI'] ), strpos( basename( $_SERVER['REQUEST_URI'] ), "=")),
'posts_per_page' => 1
);
$second_query = new WP_Query( $args );
$gllr_options = get_option( 'gllr_options' );
if ($second_query->have_posts()) : while ($second_query->have_posts()) : $second_query->the_post(); ?>
-1,
"what_to_show" => "posts",
"post_status" => "inherit",
"post_type" => "attachment",
"orderby" => "post_date",
"order" => "ASC",
"post_mime_type"=> "image/jpeg,image/gif,image/jpg,image/png",
"post_parent" => $post->ID
));
if( count( $posts ) > 0 ) {
$count_image_block = 0; ?>
ID, 'photo-thumb' );
$image_attributes_large = wp_get_attachment_image_src( $attachment->ID, 'large' );
if( $count_image_block % $gllr_options['custom_image_row_count'] == 0 ) { ?>
ID, $key, TRUE ); ?>
0 && $count_image_block%$gllr_options['custom_image_row_count'] != 0) { ?>