The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Only use index.php (4 posts)

  1. Joseelsantos
    Posted 10 years ago #

    I am trying to make my index.php as my only page. A list with 10 latest post, and the latest post showing in full.
    I have a very simple design, (t77.se) so there is no need to have one index.php and one single.php, is it possible?

    My other question is how do I enable comments on my latest post? Forms just won't show up no matter what I do!

    Tips or Ideas?

  2. moshu
    Posted 10 years ago #

    1. Yes, you can. Check out the Classic theme - it doesn't have single.php or page.php etc.
    2. I don't know :(

  3. Kafkaesqui

    Posted 10 years ago #

    2. If displaying the latest post in it's own loop, at the start of it place

    <?php $wp_query->is_single = true; ?>

  4. Joseelsantos
    Posted 10 years ago #

    Thank you, now it works just as I want!

Topic Closed

This topic has been closed to new replies.

About this Topic