• Resolved exingin

    (@exingin)


    When you search for expired jobs in the admin panel of wordpress are records up to 1 month old, if the record is older than 1 month, the search displays 0 results.When you search for overdue jobs in the admin panel of wordpress are records up to 1 month old, if the record is older than 1 month, the search displays 0 results. The problem appeared since version 1.40+

    • This topic was modified 1 year, 9 months ago by exingin.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter exingin

    (@exingin)

    The search worked after I unchecked Expired Positions under Settings – Jobs. Expired positions are now searchable in the admin panel.

    Unfortunately, the expired jobs also appeared in the frontend, so I added code to the functions.php of the theme to make them not show up in the frontend search:

    • /**Hide expired positions in frontend search
      */
      function hide_expired_positions_in_frontend_search( $args ) {
      // Check if the current query is a frontend search query
      if ( ! is_admin() && $args[‘post_type’] === ‘job_listing’ ) {
      // Modify the query to exclude expired positions
      $args[‘meta_query’][] = array(
      ‘key’ => ‘_job_expires’,
      ‘value’ => current_time( ‘mysql’ ),
      ‘compare’ => ‘>’,
      ‘type’ => ‘DATETIME’,
      );
      } return $args;
      }
      add_filter( ‘job_manager_get_listings’, ‘hide_expired_positions_in_frontend_search’ );

    Please developers – fix this bug in the next update of WP Job Manager!

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @exingin

    Could you update to WP Job Manager v1.40.2 and let us know if you continue to have issues? We made some adjustments to expired jobs and then reverted those changes in v1.40.2, so I believe that may fix your issue.

    Let us know.

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hi @exingin,

    It’s been one week since this topic was last updated. I’m going to mark this thread as solved. If you have any further questions or need more help, you’re welcome to open another thread here. Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp job manager doesnt search expired job in admin panel’ is closed to new replies.