• Resolved erwinodendaal

    (@erwinodendaal)


    I want to add documents by using a shortcode like [dg category=folders]
    For adding categories to documents I’m using the plugin: WP Media Category Management
    In the settings of that plugin I’ve set it to use the default taxonomies (because the MCM categories don’t work with Document Gallery).

    But the shortcode only shows one document. I’ve also created a document gallery first to be sure all thumbs were created, but that doesn’t help either. So what can be the problem here?

    https://ww.wp.xz.cn/plugins/document-gallery/

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

    (@danrossiter)

    Hi Erwin,

    If you update your shortcode to [dg id=-1 category=folders], does that resolve the issue?

    The id=-1 attribute is required if the attachments you wish to include are not attached to the page/post where the shortcode is being used.

    -Dan

    Thread Starter erwinodendaal

    (@erwinodendaal)

    Hi Dan,

    That works! Thanks!

    Erwin

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

The topic ‘Shortcode only shows one document per category’ is closed to new replies.