• Resolved Dirk Claesen

    (@dirk-claesen)


    On my website I display the albums as follows

    %%wppa%% %%cover=3%% %%size=auto%%
    %%wppa%% %%cover=5%% %%size=auto%%
    %%wppa%% %%cover=6%% %%size=auto%%
    %%wppa%% %%cover=12%% %%size=auto%%
    %%wppa%% %%cover=17%% %%size=auto%%
    %%wppa%% %%cover=22%% %%size=auto%%
    %%wppa%% %%cover=26%% %%size=auto%%

    This nicely displays each of these sub-albums (all being a direct child of parent –none–).

    Now, I would like to display by default the subalbums of album 17 and album 26 and therefore I entered the following code

    %%wppa%% %%cover=3%% %%size=auto%%
    %%wppa%% %%cover=5%% %%size=auto%%
    %%wppa%% %%cover=6%% %%size=auto%%
    %%wppa%% %%cover=12%% %%size=auto%%
    %%wppa%% %%covers=17%% %%size=auto%%
    %%wppa%% %%cover=22%% %%size=auto%%
    %%wppa%% %%covers=26%% %%size=auto%%

    For album 26 I have the expected behaviour but for album 17 I see in this location all albums that are a direct child of the ones with parent –none– but not the ones with parent 17.

    If I change the attribute for album 17 back to cover, then the same problems happens to album 26.
    With the few tests I did it looks like the first album that I would like to display as covers, displays all first level children. The next albums that I change to covers are displayed correctly.

    Could this be a bug somewhere? Or am I doing something wrong?

    Kind regards,
    Dirk Claesen

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

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

    (@opajaap)

    %%covers= is not supported in scripting, see https://wppa.opajaap.nl/scripting-reference/ and therefor it displays the default all non-sperate toplevel album covers.
    It is even amazing and i do not understand why it seems to work for album 26 in the first example.

    The ( depricated ) scripting method is maintained for backward compatibility only and does not support all later added features.

    Why don’t you use the recommended shortcode method? It will work there.

    Thread Starter Dirk Claesen

    (@dirk-claesen)

    Thanks for the quick reply.

    With the shortcode method it is working. (I still need to convert the entire page but my first test was positive.)

    Kind regards,
    Dirk Claesen

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    You do not need to convert all scripting to shortcodes, but if you do not have a serious reason against it, use the shortcodes from now on. You may use bothe methods together, even on the same page.

    Thread Starter Dirk Claesen

    (@dirk-claesen)

    Conversion is done. It was not that much work.
    Even if I may mix the methods, I prefer to have it clean.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘display covers instead of cover not working correctly’ is closed to new replies.