• Hi there,

    I read all over as much as I could about the home.php file, but not one person had an issue with it not actually being called.

    I created the home.php, as many have, to allow my root to display an arbitrary number of posts (typically one). I added a PHP statement just prior to the beginning of The Loop, as per the IfElse post and subsequent references thereto, such that I end up with
    <?php
    get_header();
    query_posts('posts_per_page=1'); ?>

    That’s all cool and stuff, but doesn’t seem to have changed how the root page of my blog is generated and displayed.

    I’ve checked spelling. The home.php file is in my Theme Editor list for the active theme. I haven’t taken any bludgeoning to the head (recently). What next?

    Thank you,

    Daniel

Viewing 2 replies - 1 through 2 (of 2 total)
  • I might be misunderstanding your question, but: if you completely empty home.php and then only put

    blarg

    will you then see blarg in your browser when navigating to your site?

    Thread Starter muraii

    (@muraii)

    Okay, so I should’ve tested that part of the question first. I, in fact, do generate a root document of “blarg” when replacing all other stuff in home.php. So the issue, then, must be with my usage of the query_posts() code.

    Now that I look at it, though I’m using WP 1.5.2, the beginning of The Loop seems to use the older WP 1.2 syntax. Updating that fixed everything. Holy crap.

    Danke sehr schön.

    Daniel

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Created home.php, but no effect is seen’ is closed to new replies.