WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Smart 404

Automatically redirect to the content the user was most likely after, or show suggestions, instead of showing an unhelpful 404 error.

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:

<?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.

smart404_get_search_terms

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

Requires: 2.6 or higher
Compatible up to: 3.0.5
Last Updated: 2010-9-14
Downloads: 99,816

Ratings

4 stars
4.3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,2,2
67,3,2
100,4,4
100,2,2 50,2,1 100,2,2 0,1,0 0,2,0 33,3,1
33,3,1 100,1,1 80,5,4
100,1,1
60,5,3
0,1,0
100,1,1
100,1,1
78,9,7
100,1,1
0,1,0
33,3,1
100,1,1
100,4,4
100,3,3