what happened to get_posts orderby=name?
-
My templates use get_posts orderby=post_name. I understand that post_name is now simply name, but orderby=name does not work.
According to the codex, it should work, but looking at wp-includes/query.php I see it is not an allowed_key:
$allowed_keys = array(‘author’, ‘date’, ‘category’, ‘title’, ‘modified’, ‘menu_order’, ‘parent’, ‘ID’, ‘rand’);
When and why was this done? Can we get name back as an orderby key?
- The topic ‘what happened to get_posts orderby=name?’ is closed to new replies.