Title: Integration with WP Media Folder
Last modified: August 30, 2016

---

# Integration with WP Media Folder

 *  [braunsch](https://wordpress.org/support/users/braunsch/)
 * (@braunsch)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/)
 * I think this plugin does exactly what I need to display an archive of PDF newsletters.
 * I am using “WP Media Folder” to help me organize my media files.
 * I want to drop all my old newsletter PDF files into a “folder” named “archive”
   in WP Media Folder and then want Document Gallery to pick them up.
 * WP Media Folder just shows me folders on the screen, but organizes under the 
   surface using categories in a custom taxonomy:
 * register_taxonomy( ‘wpmf-category’, ‘attachment’, array( ‘hierarchical’ => true,‘
   show_in_nav_menus’ => false, ‘show_ui’ => false ) );
 * When I create a page
 * [dg taxon_name=wpmf-category category=’Archive’]
    I get the response, “The taxon
   value entered, “taxon_name”, is not valid. Archive is not a valid term name in
   category.”
 * How would I get to my uploaded documents from DG?
 * Thanks for any help!
 * Georg
 * [https://wordpress.org/plugins/document-gallery/](https://wordpress.org/plugins/document-gallery/)

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/integration-with-wp-media-folder/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/integration-with-wp-media-folder/page/2/?output_format=md)

 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/#post-6578708)
 * Hi Georg,
 * Let me do a bit of digging on this and I’ll get you an answer shortly.
 * Thanks,
    Dan
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/#post-6578735)
 * Hi Georg,
 * Sorry, had a brain fart. For your issue, I believe you should be able to just
   do `[dg wpmf-category=Archive]`. Untested, so let me know if you still have issues
   with that change.
 * -Dan
 *  Thread Starter [braunsch](https://wordpress.org/support/users/braunsch/)
 * (@braunsch)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/#post-6578751)
 * Thanks for the quick reply.
    I tried this – and unfortunately the result is “
   The taxon value entered, “wpmf-category”, is not valid.”
 * Georg
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/#post-6578808)
 * Thanks for the update, Georg. I’ll have to take a closer look. I don’t think 
   we’ve ever tested this beyond some of the standard plugins that just add categories
   to attachments, so I’ll need to remind myself what exactly needs to be done there.
 * -Dan
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/#post-6578961)
 * Hi Georg,
 * The issue you’re running into is that no name is registered for the taxon so 
   there is no way for DG to look it up. This ties into an existing enhancement 
   request ([https://wordpress.org/support/topic/category-or-taxon_name-should-take-ids-or-slugs-not-names](https://wordpress.org/support/topic/category-or-taxon_name-should-take-ids-or-slugs-not-names)).
 * I’ll try to get that enhancement in for the next release, but that may be a week
   or two depending on how invasive non-DG work is.
 * EDIT: It’s also worth noting that “wpmf-category” is not a valid taxon slug. 
   They can only contain letters and underscores. I would mention to the WPMF developer
   as that could be breaking other things.
 * Thanks for your patience,
    Dan
 *  Thread Starter [braunsch](https://wordpress.org/support/users/braunsch/)
 * (@braunsch)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/#post-6578974)
 * Thanks for the update – please keep me posted!
 * Georg
 *  Thread Starter [braunsch](https://wordpress.org/support/users/braunsch/)
 * (@braunsch)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/#post-6579072)
 * Hello Dan –
 * I saw that a new version of Document Gallery was published yesterday – but apparently
   it does not contain this fix.
    Is this still on your radar screen, when do you
   expect this to be done? (I try to gauge if I should put in the modification proposed
   in your link myself – or wait for your work on this to be completed).
 * Thanks a lot!
 * Georg
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/#post-6579073)
 * Hi Georg,
 * This is still on my radar. I’m planning to include it in the next minor release,
   but we try to push out releases as soon as we have enhancements that are ready
   for general use. We had the enhancements released yesterday ready, so we pushed
   them out. Nothing stopping another release form coming out in a few weeks though
   🙂
 * -Dan
 *  Thread Starter [braunsch](https://wordpress.org/support/users/braunsch/)
 * (@braunsch)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/#post-6579088)
 * Hello Dan –
 * I dug a little bit deeper into this – and found out that the taxonomy for WPMF
   does not show up when you are asking for it: if ( taxonomy_exists(‘wpmf-taxonomy’))…
   comes back as “false”.
 * When I look on the database I can see that it exists on the table though… ???
   
   I can see my entries in tables wp_term_taxonomy, wp_term_relationships and wp_terms.
   The only particular thing I can see on that level is that in table “wp_terms”,
   the “wpmf-taxonomy” entries have a “term_group” value of “1”, whereas everything
   else has “0”. My “terms” (= ‘folder’ names) are in the table both with a name
   and a slug – that’s why the temporary fix you mentioned did not help me.
 * Thanks for your continued support!
 * Georg
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/#post-6579091)
 * I’ve had a thought — when does WP Media Folder call the registration of its taxon?
   Is it in an event hooked into init?
 * -Dan
 *  Thread Starter [braunsch](https://wordpress.org/support/users/braunsch/)
 * (@braunsch)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/#post-6579092)
 * I’ve put a ticket in with the coders of the WP Media Folder. I’ll keep you posted
 * Georg
 *  Thread Starter [braunsch](https://wordpress.org/support/users/braunsch/)
 * (@braunsch)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/#post-6579095)
 * Hello Dan –
 * I had the WP Media Folder people look into their end – and they changed something(
   not exactly sure what – still waiting for that): They said that they had their
   taxonomy registered “only for the back-end”.
 * Now the taxonomy is visible to Document Gallery – and I know I have two PDF files
   that fit the criteria I set – but the documents still don’t show up. I guess 
   this now is something I need your help with (and: No, it had nothing to do with
   the “name or slug” problem we started out with).
 * I have added a little bit of “test code” to my site, printing some information
   at the top of it.
    [http://www.baylands.org/web/tides-archive](http://www.baylands.org/web/tides-archive)
   At the top, you will see two lines of text. You can see that the “wpmf-category”
   taxonomy now shows up, and at the end of line two, you can see that I have two
   objects (1784 and 1785) that use my criteria (taxonomy = ‘wpmf-category’, term
   = ‘tides’). Further down on the page, you see version 1 – 3, me trying a few 
   versions of the syntax for the DG shortcode. Version 3 has the correct syntax–
   and is not telling me anything about taxonomy or category not existing. Yet: 
   My two documents still don’t show up 🙁
 * If you give me a private email address I can send you login information for my
   site – if you need it.
 * Thanks for your continued support!
 * Georg
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/#post-6579098)
 * Hi Georg,
 * Yes, the taxon being only registered on the admin side would definitely cause
   the breakage you were seeing.
 * It appears you’re still using “taxon_name” as an attribute. That is just a filler
   value, not the actual attribute you should use. In your case, you want `[dg wpmf-
   category=Archive]`. I think that may just resolve everything along with the changes
   made on WPMF’s end, but let me know how that goes.
 * EDIT: Shame on me for not fully reading your post. With #3, unless you’re using
   the patched version of DG which looks at taxon slugs, it would behave that way
   since there is no “name” for the WPMF taxon. (There is actually an auto-generated
   name WP creates, but it’s convoluted and not anything like what you would expect.)
 * -Dan
 *  Thread Starter [braunsch](https://wordpress.org/support/users/braunsch/)
 * (@braunsch)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/#post-6579099)
 * Hello Dan,
 * Unfortunately, that is not the solution. On my site, I have three versions of
   the shortcode. Version three has the correct attributes, but it still does not
   display my files. I know that there are incorrect calls of document gallery in
   those sections of my page that are labeled version 1 and version 2, please disregard.
 * If the DG plugin would work correctly you should see two files for display at
   the bottom of the page, under the label Version 3.
 *  The shortcode I am using for version 3 is [dg wpmf-category=Tides].
 * Thank you for your help.
 * Georg
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/#post-6579101)
 * Hi Georg,
 * Did you see my edit at the end of my last reply?
 * -Dan

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/integration-with-wp-media-folder/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/integration-with-wp-media-folder/page/2/?output_format=md)

The topic ‘Integration with WP Media Folder’ is closed to new replies.

 * ![](https://ps.w.org/document-gallery/assets/icon.svg?rev=983329)
 * [Document Gallery](https://wordpress.org/plugins/document-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/document-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/document-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/document-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/document-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/document-gallery/reviews/)

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [taxonomy](https://wordpress.org/support/topic-tag/taxonomy/)
 * [WP Media Folder](https://wordpress.org/support/topic-tag/wp-media-folder/)

 * 22 replies
 * 2 participants
 * Last reply from: [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/integration-with-wp-media-folder/page/2/#post-6579108)
 * Status: not resolved