WP Manifestindependent plugin directory
manifest / builders / jet-smart-filters-search-by-id

JetSmartFilters - search posts by ID

JetSmartFilters search by post ID

by Crocoblock · github.com/mjhead/jet-smart-filters-search-by-id · website

2stars
1forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/mjhead/jet-smart-filters-search-by-id/archive/refs/heads/master.zip

Description

Plugin extends JetSmartFilters functionality. It allows to search posts by post ID in the Search filter. Plugin not depends on Search by control from filter options - it will allow to search also by post ID with both variants - Default WordPress search and By Custom Field (from Query Variable).

Dy default will search by exact match - if put 34 into search field, it founds only posts with ID 34, but not 341, 134 or 1341. If you want to search by partial match, add this code into the end of functions.php file of your active theme:

add_filter( 'jet-smart-filters-search-by-id/exact-match', '__return_false' );

How to use

  • Download, install and activate plugin;
  • Plugin not requires any configuration - after activation all active Search filters starts trying to search posts also by post ID