Title: How to sort offers date valid through
Last modified: November 22, 2019

---

# How to sort offers date valid through

 *  Resolved [jeyluk](https://wordpress.org/support/users/jeyluk/)
 * (@jeyluk)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/how-to-sort-date-valid-through/)
 * Hi!
 * How can I sort the job offers with the date valid through?
 * I try:
 * add_filter( ‘jobs/listing_query’, function($args){
    $args[‘orderby’] = ‘valid_through’;
   return $args; } );
 * Thanks!
    -  This topic was modified 6 years, 5 months ago by [jeyluk](https://wordpress.org/support/users/jeyluk/).

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

 *  Thread Starter [jeyluk](https://wordpress.org/support/users/jeyluk/)
 * (@jeyluk)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/how-to-sort-date-valid-through/#post-12180996)
 * please I need help! 🙁
 *  Thread Starter [jeyluk](https://wordpress.org/support/users/jeyluk/)
 * (@jeyluk)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/how-to-sort-date-valid-through/#post-12380679)
 * Up
 * [@blueglassinteractive](https://wordpress.org/support/users/blueglassinteractive/)
   please can u help me?
 *  Plugin Author [BlueGlass](https://wordpress.org/support/users/blueglassinteractive/)
 * (@blueglassinteractive)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/how-to-sort-date-valid-through/#post-12434058)
 * [@jeyluk](https://wordpress.org/support/users/jeyluk/) its probably something
   like this
 *     ```
       add_filter( 'jobs/listing_query', function($args){
       $args['meta_key'] = 'position_valid_through';
       $args['orderby'] = 'meta_value';
       return $args;
       } );
       ```
   
 * Snipped not tested!
 * Also please keep in mind that this is custom coding and editing, which is not
   included in support of free plugin 🙂
    -  This reply was modified 6 years, 3 months ago by [BlueGlass](https://wordpress.org/support/users/blueglassinteractive/).

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

The topic ‘How to sort offers date valid through’ is closed to new replies.

 * ![](https://ps.w.org/job-postings/assets/icon-256x256.jpg?rev=1702382)
 * [Job Postings](https://wordpress.org/plugins/job-postings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/job-postings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/job-postings/)
 * [Active Topics](https://wordpress.org/support/plugin/job-postings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/job-postings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/job-postings/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [BlueGlass](https://wordpress.org/support/users/blueglassinteractive/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/how-to-sort-date-valid-through/#post-12434058)
 * Status: resolved