События
10,’paged’ => get_query_var(‘paged’),’post_type’ => ‘sobitiya’) );
if($global_posts_query->have_posts()) :
while($global_posts_query->have_posts()) : $global_posts_query->the_post();
$aidi = get_the_ID();
$dateandplace = get_post_meta($aidi, ‘dateandplace’, true);
$img01 = get_post_meta($aidi, ‘newsimage01’, true);
$img02 = get_post_meta($aidi, ‘newsimage02’, true);
$img03 = get_post_meta($aidi, ‘newsimage03’, true);
$img04 = get_post_meta($aidi, ‘newsimage04’, true);
$img05 = get_post_meta($aidi, ‘newsimage05’, true);
$img06 = get_post_meta($aidi, ‘newsimage06’, true);
$img07 = get_post_meta($aidi, ‘newsimage07’, true);
$img08 = get_post_meta($aidi, ‘newsimage08’, true);
$img09 = get_post_meta($aidi, ‘newsimage09’, true);
$img10 = get_post_meta($aidi, ‘newsimage10’, true);
if ( $img10 != » ) $img11 = get_post_meta($aidi, ‘newsimage11’, true);
if ( $img11 != » ) $img12 = get_post_meta($aidi, ‘newsimage12’, true);
if ( $img12 != » ) $img13 = get_post_meta($aidi, ‘newsimage13’, true);
if ( $img13 != » ) $img14 = get_post_meta($aidi, ‘newsimage14’, true);
if ( $img14 != » ) $img15 = get_post_meta($aidi, ‘newsimage15’, true);
if ( $img15 != » ) $img16 = get_post_meta($aidi, ‘newsimage16’, true);
if ( $img16 != » ) $img17 = get_post_meta($aidi, ‘newsimage17’, true);
if ( $img17 != » ) $img18 = get_post_meta($aidi, ‘newsimage18’, true);
if ( $img18 != » ) $img19 = get_post_meta($aidi, ‘newsimage19’, true);
if ( $img19 != » ) $img20 = get_post_meta($aidi, ‘newsimage20’, true);
if ( $img01 != » ) $img01b = wp_get_attachment_image_src($img01, ‘full’);
if ( $img02 != » ) $img02b = wp_get_attachment_image_src($img02, ‘full’);
if ( $img03 != » ) $img03b = wp_get_attachment_image_src($img03, ‘full’);
if ( $img04 != » ) $img04b = wp_get_attachment_image_src($img04, ‘full’);
if ( $img05 != » ) $img05b = wp_get_attachment_image_src($img05, ‘full’);
if ( $img06 != » ) $img06b = wp_get_attachment_image_src($img06, ‘full’);
if ( $img07 != » ) $img07b = wp_get_attachment_image_src($img07, ‘full’);
if ( $img08 != » ) $img08b = wp_get_attachment_image_src($img08, ‘full’);
if ( $img09 != » ) $img09b = wp_get_attachment_image_src($img09, ‘full’);
if ( $img10 != » ) $img10b = wp_get_attachment_image_src($img10, ‘full’);
if ( $img11 != » ) $img11b = wp_get_attachment_image_src($img11, ‘full’);
if ( $img12 != » ) $img12b = wp_get_attachment_image_src($img12, ‘full’);
if ( $img13 != » ) $img13b = wp_get_attachment_image_src($img13, ‘full’);
if ( $img14 != » ) $img14b = wp_get_attachment_image_src($img14, ‘full’);
if ( $img15 != » ) $img15b = wp_get_attachment_image_src($img15, ‘full’);
if ( $img16 != » ) $img16b = wp_get_attachment_image_src($img16, ‘full’);
if ( $img17 != » ) $img17b = wp_get_attachment_image_src($img17, ‘full’);
if ( $img18 != » ) $img18b = wp_get_attachment_image_src($img18, ‘full’);
if ( $img19 != » ) $img19b = wp_get_attachment_image_src($img19, ‘full’);
if ( $img20 != » ) $img20b = wp_get_attachment_image_src($img20, ‘full’);
if ( $img01 != » ) $img01s = wp_get_attachment_image_src($img01, ‘thumbnail’);
if ( $img02 != » ) $img02s = wp_get_attachment_image_src($img02, ‘thumbnail’);
if ( $img03 != » ) $img03s = wp_get_attachment_image_src($img03, ‘thumbnail’);
if ( $img04 != » ) $img04s = wp_get_attachment_image_src($img04, ‘thumbnail’);
if ( $img05 != » ) $img05s = wp_get_attachment_image_src($img05, ‘thumbnail’);
if ( $img06 != » ) $img06s = wp_get_attachment_image_src($img06, ‘thumbnail’);
if ( $img07 != » ) $img07s = wp_get_attachment_image_src($img07, ‘thumbnail’);
if ( $img08 != » ) $img08s = wp_get_attachment_image_src($img08, ‘thumbnail’);
if ( $img09 != » ) $img09s = wp_get_attachment_image_src($img09, ‘thumbnail’);
if ( $img10 != » ) $img10s = wp_get_attachment_image_src($img10, ‘thumbnail’);
if ( $img11 != » ) $img11s = wp_get_attachment_image_src($img11, ‘thumbnail’);
if ( $img12 != » ) $img12s = wp_get_attachment_image_src($img12, ‘thumbnail’);
if ( $img13 != » ) $img13s = wp_get_attachment_image_src($img13, ‘thumbnail’);
if ( $img14 != » ) $img14s = wp_get_attachment_image_src($img14, ‘thumbnail’);
if ( $img15 != » ) $img15s = wp_get_attachment_image_src($img15, ‘thumbnail’);
if ( $img16 != » ) $img16s = wp_get_attachment_image_src($img16, ‘thumbnail’);
if ( $img17 != » ) $img17s = wp_get_attachment_image_src($img17, ‘thumbnail’);
if ( $img18 != » ) $img18s = wp_get_attachment_image_src($img18, ‘thumbnail’);
if ( $img19 != » ) $img19s = wp_get_attachment_image_src($img19, ‘thumbnail’);
if ( $img20 != » ) $img20s = wp_get_attachment_image_src($img20, ‘thumbnail’);
echo ‘
‘;
echo $dateandplace;
echo ‘
‘;
echo the_title();
echo ‘
‘;
the_content();?>
Посмотреть фотоотчет
‘;
echo ‘
‘;
endwhile;
endif;
?>
показать еще