Title: Buddypress Docs Shortcode
Last modified: August 30, 2016

---

# Buddypress Docs Shortcode

 *  Resolved [YesPapa](https://wordpress.org/support/users/yespapa/)
 * (@yespapa)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/buddypress-docs-shortcode/)
 * Hi,
 * Is not there any shortcodes for the Buddypress Docs plugin?
 * Thank you.
 * [https://wordpress.org/plugins/buddypress-docs/](https://wordpress.org/plugins/buddypress-docs/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/buddypress-docs-shortcode/#post-6708167)
 * BP Docs doesn’t provide any shortcodes. Internally, it uses template tags, which
   assume that you’re working in PHP.
 * You could write your own short codes plugin that show some recent docs or whatever,
   though.
 *  [P](https://wordpress.org/support/users/poripa/)
 * (@poripa)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/buddypress-docs-shortcode/#post-6708169)
 * Actually, that’s what I’d like to do, to show the most recent docs as a sidebar
   widget.
 * Could you point me to a resource where I could find out more about writing my
   own shortcode plugin to create just that?
 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/buddypress-docs-shortcode/#post-6708170)
 * Writing a widget is pretty straightforward. I’d recommend copying one of the 
   core WP widgets to a new plugin and renaming it, then going from there. I’d use
   this as a starting point:
    [https://core.trac.wordpress.org/browser/tags/4.4/src/wp-includes/widgets/class-wp-widget-recent-posts.php](https://core.trac.wordpress.org/browser/tags/4.4/src/wp-includes/widgets/class-wp-widget-recent-posts.php)
 * I’m actually surprised we’ve never added a “recent docs” widget and would happy
   to do it. If you end up writing something, please let us know at [https://github.com/boonebgorges/buddypress-docs](https://github.com/boonebgorges/buddypress-docs)
 * If not, I’ll probably write one for the next major release–it’s a good idea.
 * Thanks!
 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/buddypress-docs-shortcode/#post-6708171)
 * Hi Poripa-
 * I’ve written up a widget that shows recent docs, but otherwise looks and behaves
   just like the native WP recent posts widget. You can see the code here:
    [https://github.com/dcavins/buddypress-docs/commit/5491d30e84a35ebc8e291a5bb30e6b4d89b7bd23](https://github.com/dcavins/buddypress-docs/commit/5491d30e84a35ebc8e291a5bb30e6b4d89b7bd23)
 * I think we’ll include it in a future release, but you could add the code to your
   own plugin to have that functionality now, if you wish. The file that matters
   is `class-wp-widget-recent-docs.php`.
 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/buddypress-docs-shortcode/#post-6708172)
 * Poripa-
 * The new “recent docs” widget will be included in the next BP Docs release.
 * Cheers,
 * -David
 *  [P](https://wordpress.org/support/users/poripa/)
 * (@poripa)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/buddypress-docs-shortcode/#post-6708173)
 * [@david](https://wordpress.org/support/users/david/) Cavins,
 * Thank you for the code and the update! I’ve started using it and so far there
   has been no problem!
 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/buddypress-docs-shortcode/#post-6708175)
 * BP Docs 1.9, released las night, includes the new recent docs widget. Depending
   on how your recent docs widget class is named, there may be a conflict when you
   upgrade. You can either use the new widget or rename the class of the one you’re
   currently using.
 * Best,
 * -David

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Buddypress Docs Shortcode’ 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/)

 * 7 replies
 * 3 participants
 * Last reply from: [David Cavins](https://wordpress.org/support/users/dcavins/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/buddypress-docs-shortcode/#post-6708175)
 * Status: resolved