Automatically redirect to the content the user was most likely after, or show suggestions, instead of showing an unhelpful 404 error.
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.
Requires: 2.6 or higher
Compatible up to: 3.0.5
Last Updated: 6 years ago
Active Installs: 10,000+
Got something to say? Need help?