Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/muhammad-afaque/live-search-optimizer/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A WordPress plugin that enhances the default search functionality with real-time AJAX-powered live search capabilities.
Features
Real-time Search
- Instant search results as users type
- Customizable search delay timing
- Search across multiple post types
- AJAX-powered for smooth performance
Search Optimization
- Relevance-based result ordering
- Custom weighting for titles and content
- Keyword highlighting in results
- Smart excerpt generation
Display Options
- Customizable results template
- Mobile-responsive dropdown
- Loading indicators
- "No results found" messaging
- Maximum results limit setting
Advanced Features
- Search within custom post types
- Custom taxonomies integration
- ACF fields search support
- Excluded terms/categories option
Requirements
- WordPress 5.0+
- PHP 7.4+
- Modern browser with JavaScript enabled
Installation
- Upload plugin folder to
/wp-content/plugins/ - Activate through WordPress admin
- Configure settings under Settings > Live Search
- Add search form to theme using shortcode or widget
Usage
Shortcode
[live_search placeholder="Search..." results_limit="10"]
PHP Template Integration
<?php echo do_shortcode('[live_search]'); ?>
Available Filters
// Customize search query
add_filter('lso_search_query_args', 'your_function');
// Modify results display
add_filter('lso_results_template', 'your_function');
// Adjust relevance scoring
add_filter('lso_relevance_weights', 'your_function');
Configuration
General Settings
- Search delay (milliseconds)
- Minimum characters to trigger
- Results limit
- Post types to include
Display Settings
- Results template
- Loading indicator
- No results message
- Dropdown position
Advanced Settings
- Custom field searching
- Excluded terms
- Cache duration
- Debug mode
Performance
The plugin is optimized for:
- Minimal server load
- Fast response times
- Low memory usage
- Efficient caching
Support
For technical support and feature requests, please contact plugin developer.
License
GPL v2 or later
Note: This plugin is designed to enhance WordPress search functionality while maintaining optimal performance and user experience.