Support » Plugins » Hacks » How Do I Get Header, Comments And New Comment Box All On One Page

  • Hi all, I have a question I’ve given myself mouse-click-carpel-tunnel trying to solve and I hope someone can answer this question for me, as all the suggestions I have been able to find have not worked.

    In WordPress thirteen twenty, how can I make comments appear directly under the header on the main page without having to click on a link that says “view 3 comments” etc? I don’t want there to be multiple pages, just my short intro and comments as you scroll down, with the post new comment box at the bottom, all on one page.

    I had this figured out at one point, but for the life of me could not re-find the post on the net. It was something to do with entering something in a php file before ‘endwise’ and you had to change a ‘count’ number in the code line to enable multiple posts.

    It worked for a couple of months, then I logged on one day to find the site crashed with an error message. I since rebooted the entire code, and got it back to the 2-page format, which I don’t want. Any help anyone can give this codex ignorant hapless dude would be appreciated.


Viewing 1 replies (of 1 total)
  • Moderator bcworkz


    I take it you mean you are using the Twenty Thirteen theme? I’m not sure how you got a 2 page format with this, the single post template has everything on one page. It kind of sounds like you are actually talking about the home page, not single post, which normally lists several posts with excerpts and links to read more. This page has no comments, just the comment link for each post. You could set up the home page to only show one post per page, much like the single post page, but the comments do not show by default.

    I’m not sure what you did before, but the proper approach involves reconfiguring the template pages being used to show comments and comment form together with the related post. This may just involve placing <?php comments_template(); ?> in the right spot on the right template, quite possibly before <?php endwhile; ?>. Try this on index.php as a wild guess, I’m not really sure what you really want here. Just keep clean original files as backups in case your changes don’t work right.

    I’m not sure what count you would need to change, there’s the posts per page field on reading settings, but it’s not in code. Whatever changes you do, you should implement them in a child theme so you do not lose changes when the theme updates. Sorry for being vague, I hope this helps some anyway.

Viewing 1 replies (of 1 total)
  • The topic ‘How Do I Get Header, Comments And New Comment Box All On One Page’ is closed to new replies.