WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. admin@norris-stevens.com
    Member
    Posted 1 year 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 1 year ago by admin@norris-stevens.com
  • This topic is not resolved
  • WordPress version: 3.4.2