Support » Fixing WordPress » Display full post and responses on homepage

  • 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

    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?

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Display full post and responses on homepage’ is closed to new replies.