One Search Result

One Search Result Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 1,868 downloads
One Search Result Icon

Try plugin: One Search Result

We'll create fresh WordPress site with One Search Result installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About One Search Result

Automatically send a user to the page or post if it's the only search result available.

0


0


0


0


0

updated: 3 years ago
since: 3 years ago
author: Brad Parbs

Description

When there is only one search result available for a query, automatically redirect the user to that result.

This will work with any theme and any posts, pages, or custom post types that would be shown in search results.

Available Filters

You can filter one_search_result_pre_check to false if you need to short-circuit and disable the redirect dynamically.

You can modify the redirect code with once_search_result_redirect_code, defaults to 302.