• Resolved Matt Scheidler

    (@matt6303)


    I am interested in displaying the contents of one gallery in two different places.

    • Homepage – just a few images as a “teaser” to invite a clickthrough to the full gallery
    • Interior page – the full gallery

    Is there a way, via shortcode or otherwise, to change the attributes for these two views? I’m seeking to use a few thumbnails on the homepage, but use Image Viewer on the interior page. But it looks like I have to declare one or the other in the gallery settings.

    If the answer to that question is no, is there some other way that I might accomplish this without creating two separate galleries that use the same photos?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bradvin

    (@bradvin)

    hey Matt,

    You can do this by inserting a limit attribute on the homepage’s foogallery shortcode, and leaving it off on the main gallery page. Read more here : https://fooplugins.helpscoutdocs.com/article/132-shortcode-attributes

    Thread Starter Matt Scheidler

    (@matt6303)

    Thanks for the reply. What wasn’t immediately clear to me, but you helped to clear up, is that I can have custom settings for multiple templates, no matter which template gets saved as primary.

    One further question – is there a way to use an “orderby” attribute in the shortcode? My perfect use case involves a randomized selection of thumbnails on the homepage, but a specific order on the main gallery page. But “Gallery Sorting” is in a meta box that applies to the gallery itself, not a specific template.

    Thanks again for taking the time, and for your support of this plugin.

    Plugin Author bradvin

    (@bradvin)

    hey Matt,

    Unfortunately there is no sorting or orderby attribute, but it is a great idea. I have added it to the feature backlog for a future release

    Plugin Author bradvin

    (@bradvin)

    hey Matt

    That latest version now allows you to override the sorting with a “sort” attribute.

    You can use the following values:

    date_desc
    date_asc
    modified_desc
    modified_asc
    title_asc
    title_desc
    rand

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘One gallery, multiple views?’ is closed to new replies.