[wp-hackers] home.php and trying custom php

Dion Hulse (dd32) wordpress at dd32.id.au
Sun Feb 19 02:59:44 UTC 2012

On 19 February 2012 13:52, Doug Stewart <zamoose at gmail.com> wrote:
> On Sat, Feb 18, 2012 at 9:42 PM, Dion Hulse (dd32) <wordpress at dd32.id.au> wrote:
>> No, sending a redirect is completely wrong.
> Explain, if you please. I'm not understanding 1) why you would even
> try to include index.php in home.php 2) why a redirect would be the
> wrong answer.

If you didn't realise, this is a theming question, as theme files are
included by WordPress, redirecting to another theme file via a HTTP
redirect would never work.

As to why you'd include index.php from home.php, well, honestly, I
don't know what Sinan is attempting to achieve, and I don't question
what most themers are attempting to do, but that's not to say there
isn't a reason for it (for example, if a theme had a toggle to utilise
the page or not perhaps)

Sinan: The reason to enable debugging is so that you can see the error
produced by your code, if you're just receiving a blank page, it's
either a PHP Error, or you've got a blank index.php file.. which is
entirely possible..

More information about the wp-hackers mailing list