a. Use the shortcode attribute taglist in:
[wppa type="tagcloud" taglist="tag1,tag2,tag3,tagn"]
where tag1, tag2 etc are the tags that are unique to your album
b. Use the shortcode attribute album in:
[wppa type="content" album="#tags,tag1;tag2;tagn"]
where tag1;tag2;tagn are the tags that are unique to your album
From the doc under Table of album specifications:
#tags,tag1;tag2;tagn
Tagged OR A virtual album containing photos that are tagged with tag1 or tag2 or tagn.
Hi Jacob,
I already had these Shortcodes.
I have a main album (1) on my page. Every photo is in here. Then I have many albums (places and years) where the same pictures are in (sorted). This means that each picture is present 3 times (including the tags). Now when I search for tag1, I get 30 results even though there are only 10 pictures. That’s why I need a shortcode that only searches in my main album (1) and not in all albums.
Thank you for your patience!
Try this:
Give an album that you want to act it upon (not the main) a category like the name without spaces, e.g. 1213–1900
Now use: album="#cat,1213–1900|#tags,Mytag"
Sorry, wont work, i just discovered that i commented out a piece of code required for this.
I will re-activate it in the next version.
-
This reply was modified 3 years, 11 months ago by Jacob N. Breetvelt. Reason: Sorry, wont work
Try this: Tick Table IX-E21 Extended duplicate removal
This works also on tagcloud etc.
I had already tried that. Unfortunately, too many images are removed from the result. My pictures all have an individual ID. The label can be the same. Table IX-E21 ignores the individual ID.
The internal id in the wppa_photos
db table is unique to each item; and duplicates hereof will never be displayed.
The algorithm i use to determine if two items are identical to skip duplicates by the setting IX-E21 is as follows:
- If EXIF ImageUniqueID is available and equal, the items are identical
- If EXIF date/time is available and equal, the items are identical
- If at least 4 of the following items are not empty and are equal, the items are identical:
- name
- description
- filename
- source filesize
- display filesize
- thumnail filesize
- thumbnail file content
- display file content
- source file content
@moderator: Can’t we have nested lists here?
Can you explain me where it might go wrong, or what you mean by individual ID
so i might be able to distinguish them on that point?
Maybe increasing 4 to 6 would be enough?
Searching/selecting on tag is album independant by nature, so going into that direction is not a good idea.
To my opinion you do not need to have multiple copies of the same items, you can select the items with having all the tags in any combination in one shortcode with
album="#tags,tag1,tag2,tag3"
-
This reply was modified 3 years, 11 months ago by Jacob N. Breetvelt. Reason: @Modertor: Can't we have nested lists here?
-
This reply was modified 3 years, 11 months ago by Yui.
Moderator
Yui
(@fierevere)
永子
@opajaap
Dont use @moderator
, it doesnt work.
If you wish to contact moderators, do it via the #forums channel on slack (https://make.wordpress.org/slack)
If you are requesting some forum feature:
https://wordpress.org/support/forum/requests-and-feedback/
https://meta.trac.wordpress.org/
I think I will remove the albums and only work with the tags in the future. You’re right. That solves some problems.
Yes, and will greatly simplify the maintenance of your collection!