WordPress.org

Ready to get started?Download WordPress

Forums

Display full post and responses on homepage (2 posts)

  1. paulwallas
    Member
    Posted 3 years ago #

    I have set my new blog up to display one post per page under Settings > Reading > Front page displays and I have not added a <more> tag when writing my posts.

    As a result it looks like this http://dev.paulwallas.com/

    Now, I want to be able to display the posts comments/responses below the post without it linking to the single post page.

    Is this possible?

  2. stvwlf
    Member
    Posted 3 years ago #

    Yes its possible.

    Open up the theme's single.php file (assuming it has one) and copy the code after the WordPress loop that displays the comments. You will know what code it is because it refers to comments...

    Then you need to find the template file that is displaying your homepage. If the homepage is a regular posts page that you have set to display only one post, in most themes that will be the theme's index.php file.

    Keeping the single.php file open for reference, paste the commments code you copied from single.php into the corresponding location in the index.php file. It wants to be after the WordPress loop ends, which typically is an Endwhile / Endif combination (the ending is that, I mean).

    Make sure you save a copy of index.php as it is now, on your computer before you start changing the live copy so you can revert to the original version if you create some errors you can't resolve along the way.

Topic Closed

This topic has been closed to new replies.

About this Topic