Support » Plugin: Document Gallery » pass parameters from menu

  • I am fairly new to WordPress but I am making good progress with using Document Gallery. I have a set of publications, each with a new category of Period with a number of possible values (Neolithic, Bronze Age, etc.).

    If I include in a page

    [dg id=-1 Period=Neolithic]

    I get the list of all publications that relate to the Neolithic.

    What I want to do is have a search page with a dropdown menu of all the periods, select one, and pass this parameter to my results page and insert it in the dg shortcode to produce a list of relevant publications.

    I’ve tried looking for plugins to help, and messed around with Javascript a bit, but nothing has worked. Is there an easy way to do this?

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


    Hi bacasdev,

    I’m not sure I quite understand what you want to do, however I believe your best bet with what you’re trying to do is to tie into some of the logic in gallery.js. If you look at retrieveGallery, that’s where the meat of the pagination logic is implemented, which involves retrieving galleries.

    You could pass the shortcode parameters that would have been in your shortcode dynamically after getting the right value from your dropdown.


    Many thanks Dan. Sorry for the long delay in replying which is very remiss of me. I have managed to sort out what I wanted to do. My problem was my own lack of knowledge of how WordPress works and nothing really to do with Document Gallery.

    All working really well now and I have posted a 5 star review of Document Gallery.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘pass parameters from menu’ is closed to new replies.