Title: dfisch's Replies | WordPress.org

---

# dfisch

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

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

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Getting posts based upon category returning wrong content](https://wordpress.org/support/topic/getting-posts-based-upon-category-returning-wrong-content/)
 *  Thread Starter [dfisch](https://wordpress.org/support/users/dfisch/)
 * (@dfisch)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/getting-posts-based-upon-category-returning-wrong-content/#post-2144353)
 * I figured out my issue. While I was looping through the $related_posts variable
   I was calling setup_postdata(); when I needed to be calling setup_postdata($post);
 * Everything is working as expected now.

Viewing 1 replies (of 1 total)