Title: Related Posts Loop
Last modified: August 29, 2021

---

# Related Posts Loop

 *  Resolved [sjc999](https://wordpress.org/support/users/sjc999/)
 * (@sjc999)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/related-posts-loop/)
 * Hi,
 * Is there a way to loop thru related posts for a post – something like:
 * $loop = st_get_related_posts(….);
    if ($loop->have_posts(){ while ( $loop->have_posts()){
   $loop->the_post(); …..
 * I’m looking to code something myself rather than use the built-in widget.
    Docs
   have st_related_posts, but unlike others I don’t see a ‘get’ equivalent.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [Steve Burge](https://wordpress.org/support/users/stevejburge/)
 * (@stevejburge)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/related-posts-loop/#post-14820728)
 * Hi [@sjc999](https://wordpress.org/support/users/sjc999/)
 * Thanks for using TaxoPress.
 * Sorry, with our Free support here on WordPress.org, we can’t help with custom
   code.
 * You are welcome to suggest code improvements: [https://github.com/TaxoPress/](https://github.com/TaxoPress/)

Viewing 1 replies (of 1 total)

The topic ‘Related Posts Loop’ is closed to new replies.

 * ![](https://ps.w.org/simple-tags/assets/icon-256x256.png?rev=2853049)
 * [Tag, Category, and Taxonomy Manager - AI Autotagger with OpenAI](https://wordpress.org/plugins/simple-tags/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-tags/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-tags/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-tags/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-tags/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-tags/reviews/)

## Tags

 * [loop](https://wordpress.org/support/topic-tag/loop/)

 * 1 reply
 * 2 participants
 * Last reply from: [Steve Burge](https://wordpress.org/support/users/stevejburge/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/related-posts-loop/#post-14820728)
 * Status: resolved