• Resolved Hans

    (@paladin64)


    Hallo,
    after the Last update work shortcode [pdb-list] with the attribut orderby=random
    not longer. not display the list in the fontend. why?

    i hope somebody can help.
    the display wis random is justly better for the user.

    thank you

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Thanks for this, I recently made some changes to ensure that values in the shortcode were valid, and I forgot to allow “random” as a value for the orderby attribute.

    You can fix this yourself if you want. In the plugin file classes/PDb_List_Query.php on page 252, you’ll find:

    if ( !empty( $fields[$i] ) && PDb_Form_Field_Def::is_field( $fields[$i] ) ) {

    change that to:

    if ( !empty( $fields[$i] ) && PDb_Form_Field_Def::is_field( $fields[$i] ) || $fields[$i] === 'random' ) {

    and the”random” sort will work again.

    this will be fixed in the next release.

    Thread Starter Hans

    (@paladin64)

    Hallo xnau webdesign,
    thanks for you quickli answer.

    I do it and everything works, great great great.

    Thank you very much for your support.

    Berst regards

    Hans.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode [pdb_list orderby=random] not working’ is closed to new replies.