I use this code to display latest post (only title) and it works fine but I want to display lastet post from each category, Please help me... <?php $recent = new WP_Query("cat=&showposts=12"); while($recent->have_posts()) : $recent->the_post();?> <div class="title"> <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php $tit = the_title(); ?></a> </div> <?php endwhile; ?> PHP:
<?php $recent = new WP_Query("cat=&showposts=12"); while($recent->have_posts()) : $recent->the_post();?> change this to show whichever categories your want: The below code should show the first post from categories 1,2,3,4,5. just change the numbers to the correct category id you want to display. <?php $recent = new WP_Query("cat=1,2,3,4,5&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
No I want to display according to last update post in the categories, like if category A has been updated after B the post of category A will come first and then post from category B... Like that
I think its difficult because but you can hire php developer for this and ask him/her to develop a plugin.