• 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://www.ads-software.com/plugins/document-gallery/

Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author Dan Rossiter

    (@danrossiter)

    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

    (@danrossiter)

    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

    (@braunsch)

    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

    (@danrossiter)

    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

    (@danrossiter)

    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://www.ads-software.com/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

    (@braunsch)

    Thanks for the update – please keep me posted!

    Georg

    Thread Starter braunsch

    (@braunsch)

    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

    (@danrossiter)

    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

    (@braunsch)

    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

    (@danrossiter)

    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

    (@braunsch)

    I’ve put a ticket in with the coders of the WP Media Folder. I’ll keep you posted

    Georg

    Thread Starter braunsch

    (@braunsch)

    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.
    https://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

    (@danrossiter)

    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

    (@braunsch)

    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

    (@danrossiter)

    Hi Georg,

    Did you see my edit at the end of my last reply?

    -Dan

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Integration with WP Media Folder’ is closed to new replies.