Plugin info

Total downloads: 113,534
Active installs: 2,000
Total reviews: 5
Average rating: 3.4
Support threads opened: 1
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 3
Last updated: 11/24/2020 (1862 days ago)
Added to WordPress: 10/7/2008 (17 years old)
Minimum WordPress version: 2.6
Tested up to WordPress version: 5.6.10
Minimum PHP version: 5.3

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 1862 days ago • Support resolved 0% • 5 reviews

12/100

Is Smart 404 abandoned?

Possibly abandoned (last update 1862 days ago).

Compatibility

Requires WordPress: 2.6
Tested up to: 5.6.10
Requires PHP: 5.3

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Permalinks to Category/Permalinks
Rating 5.0/5 (9 reviews)Active installs 100
genius 404
Rating 3.0/5 (1 reviews)Active installs 10
Redirection
Rating 5.0/5 (349 reviews)Active installs 100,000
404 Simple Redirect
Rating 5.0/5 (3 reviews)Active installs 1,000
Better 404 Redirect To Homepage
Rating 5.0/5 (2 reviews)Active installs 700
WP Post Redirection – 301, 404 Redirects
Rating 5.0/5 (1 reviews)Active installs 50

Description

Save your visitors from unhelpful 404 errors!

Instead of quickly giving up when a visitor reaches content that doesn’t exist, make an effort to guess what they were
after in the first place. This plugin will perform a search of your posts, pages, tags and categories, using keywords from the requested
URL. If there’s a match, redirect to that content instead of showing the error. If there’s more than one match, the
404 template can use some template tags to provide a list of suggestions to the visitor.

See the Smart 404 homepage for more information.

Template tags

smart404_has_suggestions

Returns true if there are some suggestions, false otherwise

smart404_get_suggestions

Retrieve an array of post objects for rendering manually.

smart404_suggestions

Draw a list of suggested posts.

Pass the parameter “list” to render suggestions as a list.

smart404_loop

Query posts for use in a Loop. Eg:



    

Note that the loop will not display pages correctly, as it is not built to support them. It is recommended that if you use
a loop like that above, do not enable searching of pages.

smart404_get_search_terms

Retrieve an array of search terms used to populate the suggestions list, for use with contextual highlighting, etc.

For support and latest source code, please visit https://github.com/leonstafford/smart-404

Installation

  1. Unzip the package, and upload smart404 to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php smart404_suggestions() ?> in your 404 template to list suggested posts, or see ‘Template tags’ for more information.

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

0.6

  • fix deprecation notice
  • add GitHub repo as communications point
  • update plugin’s WP readme file
  • bump WP supported version

0.5

  • Revised search algorithm

0.4.4

  • Bugfix to avoid clobbering page search results when pages are prioritised over posts (Thanks to Mark Foxwell for the catch)

0.4.3

  • More robust pattern matching – works with .php URL extensions, and works better with underscores.

0.4.2

  • Removed errant debug statement

0.4.1

  • Now actually fixed redirection bug, missed in 0.4

0.4

  • Added prioritising of pages, posts, tags and categories for search
  • Added a new template tag to retrieve search terms
  • Fixed redirection bug (thanks Emil Janizek!)

0.3.5

  • Don’t get confused by URL parameters
  • Maintain GET parameters

0.3.4

  • Slightly smarter post matching – now matches against post title, even if post slug differs

0.3.3

  • Bugfix for when no replacement patterns are specified

0.3.2

  • Better URL filtering to work with URLs including /trackback, /feed, etc

0.3.1

  • Trim whitespace from search in order to obtain more results in some circumstances