The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Allow users to sort posts on multiple pages (1 post)

  1. admin@norris-stevens.com
    Posted 3 years ago #

    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,

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by admin@norris-stevens.com
  • This topic is not resolved
  • WordPress version: 3.4.2