Deze plugin is niet getest met de laatste 3 grotere versies van WordPress. Mogelijk wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

Smart 404


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


Returns true if there are some suggestions, false otherwise


Retrieve an array of post objects for rendering manually.


Draw a list of suggested posts.

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


Query posts for use in a Loop. Eg:

<?php smart404_loop(); ?>
<?php while (have_posts()) : the_post(); ?>
    <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
    <?php the_excerpt(); ?>
<?php endwhile; ?>

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.


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


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


Lees alle 4 beoordelingen

Bijdragers & ontwikkelaars

“Smart 404” is open source software. De volgende personen hebben bijgedragen aan deze plugin.


Vertaal “Smart 404” naar jouw taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.



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


  • Revised search algorithm


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


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


  • Removed errant debug statement


  • Now actually fixed redirection bug, missed in 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!)


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


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


  • Bugfix for when no replacement patterns are specified


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


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