Skip to content

Commit

Permalink
Merge pull request #1565 from tomusborne/tweak/query-add-orderby-rand
Browse files Browse the repository at this point in the history
Query - Add rand to orderby options
  • Loading branch information
tomusborne authored Dec 4, 2024
2 parents cff2d9f + a3b5958 commit 20e1ed1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/blocks/query/query-parameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export function getParameters() {
{ value: 'modified', label: 'Last modified date' },
{ value: 'parent', label: 'Parent id' },
{ value: 'menu_order', label: 'Menu order' },
{ value: 'rand', label: 'Random' },
],
label: __( 'Order by', 'generateblocks' ),
description: __( 'Sort retrieved posts by parameter.', 'generateblocks' ),
Expand Down

0 comments on commit 20e1ed1

Please sign in to comment.