Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple orderby parameters #232

Open
billerickson opened this issue Nov 23, 2019 · 0 comments
Open

Multiple orderby parameters #232

billerickson opened this issue Nov 23, 2019 · 0 comments

Comments

@billerickson
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant