get lates post but excluding others using categories
I´m trying to make in my home page a lates post space (not in the sidebar) and exclude some post using the categorie they have. I have been trying using
get_postbut nothing works.
This is one of the code I copy/paste to see if work
<?php $recent = new WP_Query("showposts=1&exclude=142,143,144,157"); while($recent->have_posts()) : $recent->the_post();?>
How can I do it ? Help!
- The topic ‘get lates post but excluding others using categories’ is closed to new replies.