Show Comments on front page?

Discussion in 'Themia WordPress Theme' started by sierva, Jul 25, 2013.

Thread Status:
Not open for further replies.
  1. sierva

    sierva New Member

    Joined:
    Jul 17, 2013
    Messages:
    3
    Likes Received:
    0
    I am trying to add comments to the front page but it is not showing. What can I do? I have added the following in several places on the page but the comment box doesn't show:

    <!--Start Comment box-->
    <h3>Comments &amp; Responses1</h3>
    <?php comments_template(); ?>
    <!--End comment Section-->

    I added in a few different places with slightly different titles in case one of them worked and I could see which worked, including the footer from the widgets, and never shows anything but the title. What can I do to add comments on the front page?
    http://www.siervadedios.com/wp/


    Thank you.
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Go to front-page.php present in your theme directory and add the code given below

    Code:
    <?php
    $withcomments = 1; // force comments form and comments to show on front page
    comments_template();
    ?>
      

    Sending image for reference

    2013-07-26_1214.png


    This will solve your issue.
     
  3. sierva

    sierva New Member

    Joined:
    Jul 17, 2013
    Messages:
    3
    Likes Received:
    0
    Thank you, that worked great!

    Will I need to do the same thing for every page I want comments on or is there another way to put comments on other page templates?
     
  4. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Go to page.php present in your theme directory and add the code given below

    Code:
    <!--Start Comment box-->
    <h3>Comments &amp; Responses1</h3>
    <?php comments_template(); ?>
    <!--End comment Section-->
    
    Sending image for reference

    2013-07-26_1523.png




    Use same process for others also.
     
  5. sierva

    sierva New Member

    Joined:
    Jul 17, 2013
    Messages:
    3
    Likes Received:
    0
    That worked perfectly. Thank you!
     
Thread Status:
Not open for further replies.

Share This Page