display-posts-shortcode icon indicating copy to clipboard operation
display-posts-shortcode copied to clipboard

Multiple orderby parameters

Open billerickson opened this issue 6 years ago • 0 comments

The orderby parameter is sanitized with sanitize_key() which ensures it's a lowercase string with no spaces. This prevents users from specifying multiple orderby parameters (see here).

We should convert this to an array (explode spaces) and sanitize the parts, so something like [display-posts orderby="menu_order title"] works.

billerickson avatar Nov 23 '19 16:11 billerickson