Whoops! 404 Error!

Let me help you find what you came here for:

query_vars[‘name’]);
$posts = query_posts(‘post_type=any&name=’.$s);
$s = str_replace(“-“,” “,$s);
if (count($posts) == 0) {
$posts = query_posts(‘post_type=any&s=’.$s);
}
if (count($posts) > 0) {
echo “

  1. “;
    echo “

    Were you looking for one of the following posts or pages?

    “;
    echo “

Based on creating a better 404 error page by Yoast.

Leave a Reply