Hi
try this code
<ul class="rightcol">
<?php
$myposts = new WP_Query();
$myposts->query('showposts=10&cat=18');
if ($myposts->post_count == 0) { ?>
<li>sorry no posts</li>
<?php } else {
while ($myposts->have_posts()) : $myposts->the_post(); ?>
<li><span class="threecolsmall"><?php the_time('j M y') ?></span><br />
<a href='<?php the_permalink() ?>'><?php the_title(); ?></a></li>
<?php endwhile;
} ?>
</ul>
Zeal
(@zealwebdrumbeatcom)
HEELP!
Hi, i want to add a message so if a ‘parent page’ link doesnt have any ‘subpages’ a message is display saying so, “sorry no subpages”.