Allow users to sort posts on multiple pages
-
I’m using wp_query to return a list of properties on multiple pages. I would like to allow users to sort the results by custom fields (i.e., city, property name, price). The only suggestion that I’ve been given is to use sessions, but I’m fairly new to PHP and wouldn’t even know where to start writing code for that. Can anyone help me with this? Thank you so much. My wp_query code is below…
$wp_query = new WP_Query(array( 'category_name' => 'apartments', 'paged' => $paged,
- The topic ‘Allow users to sort posts on multiple pages’ is closed to new replies.