setting sortby
-
Hi,
I thought I understood filters, but I guess not.
I’m trying to have all listings (other than home page)??display in alphabetical ordero.
I have:
function order_query($query_vars) {
if (!is_home())
{$query_vars[‘orderby’] = ‘title’;}
return $query_vars;
}add_filter(‘query_vars’, ‘order_query’);
no luck.
any ideas?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘setting sortby’ is closed to new replies.