Custom 404 (Page Not Found) for Thesis

/* Custom 404 Hooks */
function custom_thesis_404_title() {
  ?>
  Oops, looks like you found one of our mistakes. We're sorry!

	<ol>
	 0) {
	?&gt;
	  <li>Were you looking for <strong>one of the following</strong> posts or pages?
		  <ul>

		    <li>&lt;a href=&quot;ID); ?&gt;"&gt;post_title; ?&gt;</a></li>

		</ul>

	  If not, don't worry, here are a few more options:</li>
	  <li><strong>If you typed in an address&hellip;</strong> make sure the spelling, case, and punctuation are correct. Then try reloading the page.</li>
	  <li><strong>Look</strong> for it in the <a href="http://code.garyjones.co.uk/sitemap/">sitemap.</a></li>
	  <li><strong>Start over again</strong> at the <a href="/">homepage</a> (and please contact me to say what went wrong, so I can fix it).</li>
	</ol>
	&lt;?php
	remove_action(&#039;thesis_hook_after_content&#039;, &#039;thesis_post_navigation&#039;);
}
remove_action(&#039;thesis_hook_404_content&#039;, &#039;thesis_404_content&#039;);
add_action(&#039;thesis_hook_404_content&#039;, &#039;custom_thesis_404_content&#039;);

Speak Your Mind

*