Title: Creating many documents
Last modified: May 9, 2018

---

# Creating many documents

 *  [daniela2](https://wordpress.org/support/users/daniela2/)
 * (@daniela2)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/creating-many-documents/)
 * Hi,
 * I have the need to create over a hundred documents, is there a way I could create
   them faster than one by one?
 * Kind regards,
    Daniela

Viewing 1 replies (of 1 total)

 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [8 years ago](https://wordpress.org/support/topic/creating-many-documents/#post-10290880)
 * Hello. Yes, you can create docs programmatically, using `BP_Docs_Query::save()`:
   [https://github.com/boonebgorges/buddypress-docs/blob/master/includes/query-builder.php#L412](https://github.com/boonebgorges/buddypress-docs/blob/master/includes/query-builder.php#L412)
 * Here’s an example of how we use that function: [https://github.com/boonebgorges/buddypress-docs/blob/master/includes/functions.php#L1079](https://github.com/boonebgorges/buddypress-docs/blob/master/includes/functions.php#L1079)
 * Be aware that creating docs is complicated because of the extra permissions layers
   and associations, but it can be done.
 * Best,
 * -David

Viewing 1 replies (of 1 total)

The topic ‘Creating many documents’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-docs.svg)
 * [BuddyPress Docs](https://wordpress.org/plugins/buddypress-docs/)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-docs/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-docs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-docs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-docs/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [David Cavins](https://wordpress.org/support/users/dcavins/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/creating-many-documents/#post-10290880)
 * Status: not resolved