WordPress.org

Ready to get started?Download WordPress

Forums

Document Gallery
[resolved] Include in template (5 posts)

  1. gojak
    Member
    Posted 2 years ago #

    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/

  2. gojak
    Member
    Posted 2 years ago #

    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

  3. gojak
    Member
    Posted 2 years ago #

    My mistake. For including in template:

    <div class="inheritssomeclass">
    <?php echo do_shortcode('[document gallery]'); ?>
    </div>
  4. Dan Rossiter
    Member
    Plugin Author

    Posted 2 years ago #

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

  5. gojak
    Member
    Posted 2 years ago #

    Thank you, no more questions. :)

    All the best!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.