Title: [Plugin: WP Document Revisions] Shortcodes doesnt work
Last modified: August 20, 2016

---

# [Plugin: WP Document Revisions] Shortcodes doesnt work

 *  Resolved [Knut23](https://wordpress.org/support/users/knut23/)
 * (@knut23)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-document-revisions-shortcodes-doesnt-work/)
 * Hello!
 * I have for two nights now been trying to get the shortcodes to work, without 
   success. The last thing I did was to check the source code of may page where 
   the shortcode should be working it’s magic. All i get is an unordered list!!!
   Like this:
    `<ul class="documents"></ul>` I tried the hortcode for gallery “[
   gallery]” (without quotes)and it worked .
 * Anyone have any suggestions on what might be causing this?
 * Thanks in advance!
    /Richard
 * [http://wordpress.org/extend/plugins/wp-document-revisions/](http://wordpress.org/extend/plugins/wp-document-revisions/)

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

 *  Thread Starter [Knut23](https://wordpress.org/support/users/knut23/)
 * (@knut23)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-document-revisions-shortcodes-doesnt-work/#post-2991072)
 * Hi again!
 * So I am the only one with this problem? Have I perhaps missed some vital “activation”
   of the shortcodes? If so, could anyone please point me to where this is done?
 * Thanks in advance again!
 * /Richard
 *  Plugin Author [Ben Balter](https://wordpress.org/support/users/benbalter/)
 * (@benbalter)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-document-revisions-shortcodes-doesnt-work/#post-2991083)
 * Please make sure all the documents you want visible are public. You can verify
   this by navigating to `/documents/`
 *  Thread Starter [Knut23](https://wordpress.org/support/users/knut23/)
 * (@knut23)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-document-revisions-shortcodes-doesnt-work/#post-2991101)
 * Thanks for the reply Benjamin!
 * Sorry for taking so long to get back. I thought I got it right when I got the
   document list with the below mentioned method. But when I took a closer look 
   I still was stuck.
 * If i use /documents/ I get a 404 from the server (not the WordPress 404!). I 
   guess this is a question of permalink settings… If I use ?post_type=document 
   instead I can see the document list. Both private/public (while logged in) and
   public (not logged in).
    But, when it comes to shortcodes I get only public documents
   from the shortcode [documents].
 * I am also using the Members plugin and custom categories for the documents. If
   that matters…
 *  Thread Starter [Knut23](https://wordpress.org/support/users/knut23/)
 * (@knut23)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-document-revisions-shortcodes-doesnt-work/#post-2991102)
 * I just noticed that all private documents will come up in a search, if I’m logged
   in. If not logged in, only public documents show up. Does that perhaps give anyone
   an idea of what is wrong?
 *  Plugin Author [Ben Balter](https://wordpress.org/support/users/benbalter/)
 * (@benbalter)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-document-revisions-shortcodes-doesnt-work/#post-2991118)
 * Assuming you are not passing any conditions to the shortcode, all the shortcode
   does is fire `get_documents()` which is itself, a wrapper for WordPress’s native`
   get_posts()` function.
 * It could be that the revisions aren’t properly saving, which could cause a problem
   further down the pipeline, but other than that it shouldn’t touch WordPress’s
   core functionality.
 * I’d recommend updating to the latest version of the plugin and WordPress if you
   haven’y already, and disabling all other plugins. If the problem persists, and
   you’re a bit familiar with code, you can try to recreate the problem either in
   WP Debug Bar’s console, or by adding commands to output documents in the shortcode
   function, as well as get_documents.
 *  [fredricke.engels](https://wordpress.org/support/users/fredrickeengels/)
 * (@fredrickeengels)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-document-revisions-shortcodes-doesnt-work/#post-2991119)
 * Hi I just installed WPDR and WPDR simple downloads.
    I wanted to create shortcode
   for file categories, but the following doesnt work [documents category_name=”
   mr”], mr is the slug for the file category i created. But [documents workflow_state
   =”final”] works perfectly fine. Is it because WPDR not aware of file categories
   which got introduced newly in WPDR simple downloads?
 *  [fredricke.engels](https://wordpress.org/support/users/fredrickeengels/)
 * (@fredrickeengels)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-document-revisions-shortcodes-doesnt-work/#post-2991120)
 * The File Categories of WPDR simple downloads are getting stored as “wpdr-file-
   categories”.
    I tried inserting $args[‘wpdr-file-categories’]=’mr’; in get_documents()
   and it worked perfectly fine. But [documents wpdr-file-categories=’mr’] shortcode
   doesnt work. Can anyone tell me where should i check to enable shortcode support
   for wpdr-file-categories.

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

The topic ‘[Plugin: WP Document Revisions] Shortcodes doesnt work’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-document-revisions_6c6c6c.svg)
 * [WP Document Revisions](https://wordpress.org/plugins/wp-document-revisions/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-document-revisions/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-document-revisions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-document-revisions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-document-revisions/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [fredricke.engels](https://wordpress.org/support/users/fredrickeengels/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-document-revisions-shortcodes-doesnt-work/#post-2991120)
 * Status: resolved