• Resolved brauni0406

    (@brauni0406)


    Hello everyone,

    a.
    I would like to create a TagCloud, which only refers to the keywords from 1 album. The keywords / files from all albums are currently shown, which is why there are many duplicates.[wppa type=”tagcloud” taglist=”Name”]

    b.
    the same problem. But here I want to create an album that only consists of one keyword ([wppa type=”content” album=”#tags”]).

    Thank you so much!

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    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.

    Thread Starter brauni0406

    (@brauni0406)

    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!

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    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
    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Try this: Tick Table IX-E21 Extended duplicate removal
    This works also on tagcloud etc.

    Thread Starter brauni0406

    (@brauni0406)

    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.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    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:
    1. name
    2. description
    3. filename
    4. source filesize
    5. display filesize
    6. thumnail filesize
    7. thumbnail file content
    8. display file content
    9. 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/

    Thread Starter brauni0406

    (@brauni0406)

    I think I will remove the albums and only work with the tags in the future. You’re right. That solves some problems.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Yes, and will greatly simplify the maintenance of your collection!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘TagCloud and Album for a Tag’ is closed to new replies.