• Resolved jeyluk

    (@jeyluk)


    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.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jeyluk

    (@jeyluk)

    please I need help! 🙁

    Thread Starter jeyluk

    (@jeyluk)

    Up

    @blueglassinteractive please can u help me?

    Plugin Author BlueGlass

    (@blueglassinteractive)

    @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.
Viewing 3 replies - 1 through 3 (of 3 total)

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