Displaying Comments on Front Page (2 posts)

  1. ricland
    Posted 10 years ago #

    How do I display my comments on the front page. I did a search and found this, but it didn't say where to put the hack:

    In the theme I'm using "Wuhan Aumtumn" there's no template called "front Page". Besides, even if there were, I sill have no idea where to put the hack.


    // Kubrick Front Page Hack
    if (empty($_SERVER['QUERY_STRING'])) { // Query string empty?
    $withcomments="1"; // Show comments regardless.
    include(ABSPATH . 'wp-comments-noform.php'); // Yep. Display comments, no form.
    $withcomments="0"; // Reset withcomments to zero
    } else {
    include(ABSPATH . 'wp-comments.php'); // Nope, business as usual.
    // End of Hack

  2. yami
    Posted 10 years ago #

    Ricland, how do you want your comments to appear? Below each post on the front page, or a list of recent comments in the sidebar, or what?

    Your "front page" template is the one called index.php. To learn more about how to edit this, where to put modifications and so on, I suggest browsing some of the Codex articles on blog design and layout, particularly Stepping into Template Tags.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.