Applications: Limit past applications per page

← Back to Applications

By default, the [past_applications] shortcode displays 25 past applications per page. To change that, add the following code using the Code Snippets plugin and adjust the value as desired:

add_filter( 'job_manager_job_applications_past_args', 'change_past_application_args');

function change_past_application_args( $args ) {
  $args['posts_per_page'] = 5; // Number of past applications to display on each page.
  $args['offset'] = ( max( 1, get_query_var( 'paged' ) ) - 1 ) * $args['posts_per_page'];
  return $args;
}
Applications Documentation