Support » Alpha/Beta/RC » Get latest post titles from one category

  • Resolved s0what

    (@s0what)


    Hi! I use Arthemia theme and it uses following code to display latest post titles from one category:

    <?php $recent = new WP_Query("cat=3&showposts=3"); while($recent->have_posts()) : $recent->the_post();?>
    
    <li><a href="<?php the_permalink(); ?>" rel="bookmark">
    <?php the_title(); ?></a></li>
    
    <?php endwhile; ?>

    but it doesn’t work on WP 3.0 beta 1

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get latest post titles from one category’ is closed to new replies.