• So

    I understand how to create a gallery using keywords …

    [gallery wplr-keyword="491133)"] (this shows all car images from a spceific event)

    However there are some images here that have that I don’t want to show on this page. Namely these …

    Automotive Bonnet Mascot (ID: 346573, Photos: 119)

    So how do I construct a shortcode that allows me to SHOW photos with keyword ID# 491133 while HIDING those with keyword ID#?346573

    Any help would be appreciated

    Thanks

    Ray

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter vintagegroup

    (@vintagegroup)

    So it seems one of the standard WP-GALLERY codes is ‘exclude’ but for some unknown reason that doesn’t seem to be available in WP/LR Sync when using shortcodes?

    Thread Starter vintagegroup

    (@vintagegroup)

    The recent update which now includes wplr-keywords-and still doesn’t fix the problem.

    Example:

    I have 3 photos … (wplr keywored numbers are in brackets)

    PHOTO A (keywords) = cars(399075), alvis(1874836), Silver Crest(3000610)
    PHOTO B (keywords) = cars(399075), alvis(1874836) Silver Crest(3000610)

    PHOTO c (keywords) = Mascot(346573), alvis(1874836), Silver Crest(3000610)

    Now I only want to show photos A & B so I use this shortcode

    [gallery wplr-keywords-and="399075,1874836"]

    This should show me just A & B but because alvis is a keyword on photo C I am seeing 3 photos.

    This plugin needs the ability to BOTH specify multiple keywords which must be and AND operator but it also needs the ability to further fine tune that query by excluding other keywords – perhaps something like.

    [gallery wplr-keywords-and="399075,1874836" wplr-keywords-and-exclude="346573"]

    The exclude should be an AND operator unless it could be specified to be an OR operator.

    [gallery wplr-keywords-and="399075,1874836" wplr-keywords-or-exclude="346573"]

    From there you could also do an OR operator for finding files as well as excluding them. i.e.

    [gallery wplr-keywords-or="399075,1874836"]

    This would find images with with EITHER of those keywords as opposed to AND which find images which have BOTH keywords.

    This would make wp/lr REALLY REALLY flexible. Right now its driving me up the wall that I can’t do this.

    Thread Starter vintagegroup

    (@vintagegroup)

    I found a way to achieve the result I need (without changing the keywords on thousands of photos)

    This works …

    [gallery wplr-keywords-and="1874836" wplr-collection="79,74" orderby="date" order="desc" columns="5"]

    However its not an ideal solution because it means that every time I add a new collection I will have to update 40+ pages to include that collection.

    So ideally there needs to be a way to INCLUDE keywords (wplr-keyords-and) but at the same time EXCLUDE keywords from the result.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HIDE SOME IMAGES USING WPLR-KEYWORDS’ is closed to new replies.