WordPress.org

Support

Support » Themes and Templates » get lates post but excluding others using categories

get lates post but excluding others using categories

  • Hi,

    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 wp_query and get_post but 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!
    Thanx.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get lates post but excluding others using categories’ is closed to new replies.