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 “
- “;
echo “Were you looking for one of the following posts or pages?
“;
echo “- “;
- Search for it:
- If you typed in a URL… make sure the spelling, cApitALiZaTiOn, and punctuation are correct. Then try reloading the page.
- Look for it in the “>homepage (and please contact me to say what went wrong, so I can fix it).
foreach ($posts as $post) {
echo ‘ - Search for it:
Based on creating a better 404 error page by Yoast.