Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 112466

Norris Stevens on "Allow users to sort posts on multiple pages"

$
0
0

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,

Viewing all articles
Browse latest Browse all 112466

Trending Articles