Title: dcstrad's Replies | WordPress.org

---

# dcstrad

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

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

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [get_posts() versus query_posts() confusing](https://wordpress.org/support/topic/get_posts-versus-query_posts-confusing/)
 *  [dcstrad](https://wordpress.org/support/users/dcstrad/)
 * (@dcstrad)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/get_posts-versus-query_posts-confusing/#post-510509)
 * > Do both of them extract a subset of ALL posts into an array that can be passed
   > into another Loop?
 * Yes. However, with query_posts() you don’t need to use the setup_postdata() function,
   while with get_posts() you do. The other thing I have noticed is that after using
   query_posts(), the is_archive() conditional tag returns TRUE. So if you’re going
   to use the conditional tags (is_single(), is_page(), is_archive(), etc.), do 
   not use query_posts().

Viewing 1 replies (of 1 total)