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

    (@danrossiter)

    Hi Jeff,

    I actually hadn’t looked at the options for this in a while so I did a bit of digging and it looks like Media Library Categories would be your best bet at the moment. I had previously used Media Categories, but development seems to have stopped on that plugin.

    That said, I am currently using Media Categories on my personal site, so either should do the trick.

    All the best,
    Dan

    PS: If you’ve found this plugin useful, please take a moment to rate it. Thanks! ??

    bremnerr

    (@bremnerr)

    Can Document Gallery then filter by category?

    I would like to be able to have a page with several Document Galleries each displaying a different category without having to manually add the ID to each gallery ever time the user adds another document.

    Something like
    [dg media_category=”registration_documents”]
    [dg media_category=”instruction_manuals”]
    [dg media_category=”forms_and_applications”]
    etc.

    Or can you recommend another method of accomplishing this same goal? Thanks!

    Plugin Author Dan Rossiter

    (@danrossiter)

    Yup. Just use the category name instead of its slug.

    bremnerr

    (@bremnerr)

    Thanks for the quick response.

    Ive been trying this and failing. Let me know if I am doing something incorrectly or if there is something inherently wrong with the site. I have taken over ownership of a site so I don’t know everything that has been done with it prior.

    I am using the Media Library Categories to create categories for the documents, then assigning the categories to selected documents in the Media Library.

    On the page where I want them to appear I am using the format
    [dg media_category=”Category Name”]
    and the page returns:
    The taxon value entered, “media_category”, is not valid.

    With that said, I did notice that the MLC plugin seems to be creating categories using the category taxonomy instead of media_category, is this normal behavior?

    Thanks a ton, this hiccup has been driving me nuts.

    Plugin Author Dan Rossiter

    (@danrossiter)

    No problem! ??

    If that’s the case then you’ll want [dg category="Category Name"]. I don’t have Media Library Categories on a test system right now, but if that doesn’t work I can install it and play with it a bit to figure out what exactly it’s doing.

    -Dan

    bremnerr

    (@bremnerr)

    Yeah I tried that too. I am thinking that something is fowled up somewhere. I may just have to utilize IDs for now.
    I would love to be able to troubleshoot this with but it’s difficult to describe what I am seeing without sending screenshots.

    Plugin Author Dan Rossiter

    (@danrossiter)

    Screenshots are fine. Maybe use this? https://postimage.org/

    -Dan

    bremnerr

    (@bremnerr)

    Ok, here goes, hopefully this helps:

    Using the MLC plugin I created a category called Media Category:
    [url=https://postimage.org/][img]https://s24.postimg.org/63kjeiqsl/Media_Categories.png[/img][/url]
    [url=https://postimage.org/]photo uploading[/url]

    Then added the Category to a PDF in the Media Library:
    [url=https://postimage.org/][img]https://s16.postimg.org/3p1994qh1/Category_assigned_to_Document.png[/img][/url]
    [url=https://postimage.org/]free photo hosting[/url]

    Then added the shortcode to a Page:
    [url=https://postimage.org/][img]https://s2.postimg.org/fn9nl54e1/Shortcode_in_Page.png[/img][/url]
    [url=https://postimage.org/]img[/url]

    Then get no results on the Page:
    [url=https://postimage.org/][img]https://s9.postimg.org/bfk2p830v/No_Results.png[/img][/url]
    [url=https://postimage.org/]free photo hosting[/url]

    I have tried various other methods and plugins all with similar results. Probably the most telling is this example (Using SIteOrigin Post Loop):
    [url=https://postimage.org/][img]https://s30.postimg.org/hxvbt1p35/Site_Origin_Post_Query.png[/img][/url]
    [url=https://postimage.org/]image url[/url]

    As you can see at the bottom the query returns no posts.

    My guess is that something is hosed behind the scenes but I don’t have terminal or FTP access to the server that this site is hosted on, and I wouldn’t really know where to start as I don’t normally dev WP sites.

    My hope is that I overlooked something stupid and feel like an idiot for spending so much time trying to troubleshoot this issue.

    Again, much thanks for any guidance that you can provide.

    bremnerr

    (@bremnerr)

    Ok, here goes, hopefully this helps:

    Using the MLC plugin I created a category called Media Category:
    https://s24.postimg.org/63kjeiqsl/Media_Categories.png

    Then added the Category to a PDF in the Media Library:
    https://s16.postimg.org/3p1994qh1/Category_assigned_to_Document.png

    Then added the shortcode to a Page:
    https://s2.postimg.org/fn9nl54e1/Shortcode_in_Page.png

    Then get no results on the Page:
    https://s9.postimg.org/bfk2p830v/No_Results.png

    I have tried various other methods and plugins all with similar results. Probably the most telling is this example (Using SIteOrigin Post Loop):
    https://s30.postimg.org/hxvbt1p35/Site_Origin_Post_Query.png

    As you can see at the bottom the query returns no posts.

    My guess is that something is hosed behind the scenes but I don’t have terminal or FTP access to the server that this site is hosted on, and I wouldn’t really know where to start as I don’t normally dev WP sites.

    My hope is that I overlooked something stupid and feel like an idiot for spending so much time trying to troubleshoot this issue.

    Again, much thanks for any guidance that you can provide.

    Plugin Author Dan Rossiter

    (@danrossiter)

    Ah. Now I see the problem. If the attachments you’re wanting aren’t attached to the page where the shortcode is used, you need to also include id=-1, so in your case [dg id=-1 category="Category Name"]. And that should do it! ??

    -Dan

    bremnerr

    (@bremnerr)

    Awesome! Thanks I had tried attaching the page before without success but without the id=-1. That did the trick! Great plug-in!

    My only request would be the ability to add the modified/updated %date% above or below the document title or description so site visitors can verify that the have the latest revisions.

    Thanks again,
    Ryan

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘categories for media files’ is closed to new replies.