Title: pecado's Replies | WordPress.org

---

# pecado

  [  ](https://wordpress.org/support/users/pecado/)

 *   [Profile](https://wordpress.org/support/users/pecado/)
 *   [Topics Started](https://wordpress.org/support/users/pecado/topics/)
 *   [Replies Created](https://wordpress.org/support/users/pecado/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/pecado/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/pecado/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/pecado/engagements/)
 *   [Favorites](https://wordpress.org/support/users/pecado/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Recent Posts Exclude Category](https://wordpress.org/support/topic/recent-posts-exclude-category/)
 *  Thread Starter [pecado](https://wordpress.org/support/users/pecado/)
 * (@pecado)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/recent-posts-exclude-category/#post-3464910)
 * At last, I solved the question. This is the answer.
 * <?php
 * $recentPosts = new WP_Query();
 * $id = get_cat_id(‘portfolyo’);
    $q = “cat=-“.$id;
 * $recentPosts->query(‘showposts=5&cat=’ .$q);
 * while ($recentPosts->have_posts()) : $recentPosts->the_post();
    ?>
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Recent Posts Exclude Category](https://wordpress.org/support/topic/recent-posts-exclude-category/)
 *  Thread Starter [pecado](https://wordpress.org/support/users/pecado/)
 * (@pecado)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/recent-posts-exclude-category/#post-3464891)
 * I’d tried to page them except recent 4-5 posts showing.
 * I couldn’t have the right view.
 * Is there any help, please?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Recent Posts Exclude Category](https://wordpress.org/support/topic/recent-posts-exclude-category/)
 *  Thread Starter [pecado](https://wordpress.org/support/users/pecado/)
 * (@pecado)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/recent-posts-exclude-category/#post-3464848)
 * I’d tried $recent_posts codes couldn’t merge with my codes.
 * Any help please?

Viewing 3 replies - 1 through 3 (of 3 total)