Title: Sorting posts on the fly
Last modified: August 19, 2016

---

# Sorting posts on the fly

 *  [everten2](https://wordpress.org/support/users/everten2/)
 * (@everten2)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/sorting-posts-on-the-fly/)
 * I have several pages that will be showing posts based on custom fields.
 * Let’s say I am reviewing fruit for instance:
 * Page1 will show posts that are Apples.
    Page2 will show posts that are Oranges.
 * Each post (no matter what type of fruit) will have custom fields that contain
   ratings on categories such as:
    sweetness flavor texture color
 * What I want to do is add links on each page, possibly using the header, that 
   will sort the fruit based on sweetness, flavor, texture, or color. These links
   need to work no matter which page they fall on.
 * For example: If I am on a page that shows all fruit where the color is “red”,
   no matter what type of fruit, I need to be able to sort these results by clicking
   any of the links (sort by sweetness, flavor, texture, color)
 * This topic is requesting something similar, but it never was fully solved:
    [http://wordpress.org/support/topic/281988](http://wordpress.org/support/topic/281988)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/sorting-posts-on-the-fly/#post-1400603)
 * See if you like what this plugin offers:
    [http://wordpress.org/extend/plugins/wp-smart-sort/](http://wordpress.org/extend/plugins/wp-smart-sort/)
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/sorting-posts-on-the-fly/#post-1400641)
 * promising little plugin – thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sorting posts on the fly’ is closed to new replies.

## Tags

 * [custom field](https://wordpress.org/support/topic-tag/custom-field/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [links](https://wordpress.org/support/topic-tag/links/)
 * [sort](https://wordpress.org/support/topic-tag/sort/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Samuel B](https://wordpress.org/support/users/samboll/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/sorting-posts-on-the-fly/#post-1400641)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
