go41

Re: 404.php error custom page :: Reply by master

von Joern am 6. Mai. 2010 | Keine Kommentare

you know what I like to do with 404.php?

It’s so empty so I show my 10 latest posts in there. In 404.php you find:

Ooops, I cannot find you the page you are looking for….
Just under this paragraph I add wp_get_archives(‚type=postbypost&limit=10‘); looking like this:

Code:

<div class="entry clearfloat">
      <p>Ooops, I cannot find the page you are looking for. You may try to search my site with another keyword or use the navigation above to browse my site.</p>
<h3>Please check our recent entries...</h3>
<ul><?php wp_get_archives('type=postbypost&limit=10'); ?></ul>
      </div>

Now coming to this empty page you find a list of the 10 latest posts.
____________________
you find me on Google+, Twitter and Facebook

(von: master)

Hier noch 3 weitere Ergebnisse dieses Threads:

404.php error custom page

6. Mai. 2010 (von: qtest)

HiI am using Windows shared hosting from GoDaddy and its 404 custom page service which redirects to 404.php page in arthemia theme folder. However, when encountered with a non-existing page like http://energybusiness.in/nocat, it shows the following er... Weiterlesen →

Re: 404.php error custom page :: Reply by master

6. Mai. 2010 (von: master)

actually you can not link to any .php file in themes folder. Wordpress and the theme will show the content of 404.php if it can't find an entry with this (invalid) url.This error comes on any .php file you want…

Re: 404.php error custom page :: Reply by qtest

6. Mai. 2010 (von: qtest)

Yeah certainly, it worked liked a charm.Thanks a lot Weiterlesen →

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: