[insert_php] $query = new WP_Query( array( ‘category_name’ => ‘nashi-dostizheniya’, ‘posts_per_page’ => 1, ‘order’ => ‘DESC’) );
while ( $query->have_posts() ) {
$query->the_post();
print(‘

‘);
}
[/insert_php]
Наши достижения

[insert_php] $query = new WP_Query( array( ‘category_name’ => ‘novosti’, ‘posts_per_page’ => 1, ‘order’ => ‘DESC’) );
while ( $query->have_posts() ) {
$query->the_post();print(‘‘);
//print(‘‘.the_post_thumbnail().’‘);
if ( has_post_thumbnail() ) {
$feat_image_url = wp_get_attachment_url( get_post_thumbnail_id() );
echo ‘‘;
}
print(‘‘.the_title().’‘);
print(‘
‘);
}
[/insert_php]



Тренерский состав

[insert_php] $query = new WP_Query( array(‘category_name’ => ‘trenerskij-sostav’) );
while ( $query->have_posts() ) {
$query->the_post();$feat_image_url = wp_get_attachment_url( get_post_thumbnail_id() );
$title = get_the_title();print(‘

‘);
}
[/insert_php]