This topic contains 3 replies, has 2 voices, and was last updated by  PCoffee 1 year, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1016

    Robin Katz
    Participant

    Is it possible to show all comments below the post? Interested in either post view and/or homepage view?

    #1017

    PCoffee
    Keymaster

    What do you exactly mean by showing comments below post view?
    Switch them with the comment form, so they’ll come first?
    It is possible to do that by editing the theme. The best way to do that is by creating a child theme. it is pretty simple if you know some about html. See Child Themes in Codex.

    Including all the comments below every post on the homepage is not usually something that people do (because with many posts/comments the page can become pretty heavy), although it is still possible through the manual editing of the theme files.

    If you have some basic knowledge of html editing and will create a child theme yourself, I can help you with code (point out what exactly need to be moved and where).

    #1018

    Robin Katz
    Participant

    Thanks for your quick response.

    What I mean is that on my homepage, user-driven.org, you have to click on “1 comment” to see the comments.

    I know that most sites would rather click through to comment threads, but in this case, we are creating the site FOR comments, so would want the comments to be as visible as the post content.

    I’m very familiar with HTML and CSS, but just couldn’t see how in the theme or WP setting to makes the comment box and thread visible on the homepage, not just at http://www.user-driven.org/?p=1#comments

    #1019

    PCoffee
    Keymaster

    Ok.

    Wordpress work as follows:

    There is a thing called “loop” and through it the posts on shown. Posts use content.php for their innards.

    Showing the index.php (the main blog page) wordpress generates code from the following blocks:

    index specific header


    content.php (of the first post)
    content.php (of the second)
    content.php
    content.php


    index specific footer

    For single post, wordpress uses single.php template:

    single specific header

    content.php (of just this one post)

    single specific footer

    The Comments template is called in the “single specific footer” part.

    So, if you want comments to appear after every post (in both homepage and single post view). You should call them in content.php instead of the single post specific template.

    That way comments template will be shown for every post.

    Hope that helps.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.