WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Joseelsantos
    Member
    Posted 8 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
    Member
    Posted 8 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 8 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
    Member
    Posted 8 years ago #

    Thank you, now it works just as I want!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags