Support » Plugin: Document Gallery » [Plugin: Document Gallery] Include in template

  • Resolved gojak

    (@gojak)


    HI,
    is it possible to include this into theme page so if a page has attached documents it will automatically display docs? This way I can have pre-prepared theme. Something like:

    <?php if (function_exists('document gallery')) echo ('get_attachment_icons'); ?>

    Thanks

    http://wordpress.org/extend/plugins/document-gallery/

Viewing 4 replies - 1 through 4 (of 4 total)
  • gojak

    (@gojak)

    Or perhaps to add it in widgets, that would be cool since than it would automatically be listed if a page has attachments… simmilar to Document Attachment Widget.
    Thanks

    gojak

    (@gojak)

    My mistake. For including in template:

    <div class="inheritssomeclass">
    <?php echo do_shortcode('[document gallery]'); ?>
    </div>

    Plugin Author Dan Rossiter

    (@danrossiter)

    @gojak: Thanks for the comment! It sounds like you found a solution for your own question so I’m going to mark this as resolved, but do let me know if you have any other questions.

    Thank you, no more questions. 🙂

    All the best!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Document Gallery] Include in template’ is closed to new replies.