Support » Fixing WordPress » Displaying Comments on Front Page

  • 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

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

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying Comments on Front Page’ is closed to new replies.