Title: page template loop
Last modified: September 27, 2016

---

# page template loop

 *  Resolved [Martijn](https://wordpress.org/support/users/ximie90/)
 * (@ximie90)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/page-template-loop-2/)
 * Hi,
 * How can we get a loop of all documents based on group ID?
 * I’m creating pages for ‘Locations’ we have groups linked to this.
    So I have 
   a page for ‘Location A’ showing the group members.
 * I would also like to show the group documents on this page.
    How can we do this?
 * Kind regards,
 * Martijn

Viewing 1 replies (of 1 total)

 *  Plugin Author [lenasterg](https://wordpress.org/support/users/lenasterg/)
 * (@lenasterg)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/page-template-loop-2/#post-8921504)
 * It can be done, but you need to know some PHP. You should look into bp_group_documents_display_content()
   function in bp-group-documents/include/bp_group_documents_functions.php and write
   a similar code into your theme file.

Viewing 1 replies (of 1 total)

The topic ‘page template loop’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bp-group-documents.svg)
 * [BP Group Documents](https://wordpress.org/plugins/bp-group-documents/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-group-documents/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-group-documents/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-group-documents/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-group-documents/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-group-documents/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [lenasterg](https://wordpress.org/support/users/lenasterg/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/page-template-loop-2/#post-8921504)
 * Status: resolved