• Resolved edumusa

    (@edumusa)


    hello Jacob, and anyone else that could help.

    i’m having some weird error.
    In my code, for the user to have less work, i have the following:

    do_shortcode('[wppa type="slide" album="$'.get_the_title().'"][/wppa]');

    So the album name has to be exactly the same as the custom post title. Once he adds an album, it automatically displays in the post.

    lazy guy isn’t he?
    There’s 45 albums. Only two of them can’t be found. All the rest works fine.

    the message:
    [WPPA+ dbg msg: Album name not found: $John von Bergen]

    I already disabled all plugins, changed the names of posts and albums, added new albums or posts with those names, but still, these 2 won’t do it!!
    I forced the names directly in the database, but…
    Hell! i even upgraded WP to latest version (even some plugins won’t work)…

    Well, if i insert the album using the editor, it works…

    the link to visualize:
    galeriapilar.com/site/artistas/john-von-bergen

    the other unworking name would be montez magno

    Any clues what’s going on?
    Any help?

    Regards

    https://www.ads-software.com/plugins/wp-photo-album-plus/

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

    (@opajaap)

    Spaces in the name or wrong capitalisation?

    ‘john von bergen’ != ‘John von Bergen’ != ‘John von bergen’ etc.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I think i found it, thanx to you for having the debug switch on:

    [WPPA+ dbg msg: Dups found for Montez Magno]

    There are more than one albums with that name, so I (wppa) does not know what to choose.

    Same for John:

    [WPPA+ dbg msg: Dups found for John von Bergen]
    [WPPA+ dbg msg: No aid found for John von Bergen]
    [WPPA+ dbg msg: Album name not found: $John von Bergen]
    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I will see if I can change it so that is shows all the albums with that nam.

    Thread Starter edumusa

    (@edumusa)

    Jacob, thank you for the reply.

    …. man, are you fast?!?

    i was making some local tests to be sure on the duplicated name issue, and preparing to reply this post, and there you go, plugin updated!

    well, i appreciate that very much, but still there’s an issue, and i was afraid it would happen because of your answer…

    how can i display only 1 album, that would be the one with the exact name?
    In my case, i have an artist (John von bergen) and the exhibit (works by john von bergen). One album for each situation. I need to display only the exact one on each.

    Thank you for a wonderful plugin!

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I know of this issue. Because of when people use qTranslate for multi language, and the album name is multi language, e.g.:

    [:nl]Vogels[:en]Birds[:fr]Oiseaux[:]

    I have to look for anithing like %Birds%.
    This will also find:

    [:nl]Gele vogels[:en]Yellow birds[:fr]Oiseaux jaunes[:]

    I will improve the algorithm, so that I will look in the multiple found albums if there is one that matches exactly. Upper and lower case will stay independant ( i.e. dont’t care ).

    Probably next version.

    Thread Starter edumusa

    (@edumusa)

    Ok!

    i understand.
    Thanks for the help.

    I think i can wait for next version and/or find some workaround on this until it’s done.

    Best Regards

    Thread Starter edumusa

    (@edumusa)

    Yes, I believe you made it!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Album name can't be found’ is closed to new replies.