Как я могу получить ID поста внутри цикла, хочу сделать что-то типв:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
<?php
$id=??????
if ($id>125) {
the_content(__(‘Read more’));
}
?>
Заранее спасибо
Как получить ID странички внутри цикла в page.php ?

Оказалось все проще чем я думпл:
ID поста уже хранится в переменной $id
и ее можно заюзать :
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
<?php
if ($id>125) {
the_content(__(‘Read more’));
}
?>
А зачем это Вам? (интересно)
оффтоп
По-моему нужно создать раздел – позитивное! Там печатать подобное