Withdrawal of certain categories of positions

Zadachka needed in the template display the latest news of a certain category on the home. Well established in the template file home.php. And place prescribed

1
2
3
4
5
6
<?php
query_posts($query_string.'&amp;cat=26');//Делаем запрос в базу который выберет нужные нам посты
have_posts();//выбрать посты
the_post();//выбрать первый пост
the_excerpt();//вывод краткой новости
?>

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.