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

  • Resolved gojak


    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'); ?>


Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.



    My mistake. For including in template:

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

    Plugin Author Dan Rossiter


    @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.