Plugin Directory

Smart 404

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.

Changes

  • 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

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus (1 reporting)

100%
100,1,1
100,1,1

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(13 ratings)