Support » Theme: Anarcho Notepad » Comments on home page

  • Resolved gogzy

    (@gogzy)


    Hello,

    Is it possible to have commenting of posts on home page? I would like to have only one post on homepage and comments section below.

    If it’s possible could you please explain to me how can I do that?

    Thank you in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Solution:

    <?php
    $withcomments = "1";
    comments_template(); // Get wp-comments.php template
    ?>
    Theme Author Arthur Gareginyan

    (@arthur-gareginyan)

    Hello,

    I’m glad that you found a solution.

    Where do I paste the above code?

    I love the above theme but most of my readers are complaining that they cannot find where to post a comment. Previously, on my webpage, which has a stream of blog entries (see http://www.rajibroy.com), every blog entry had a link to post a comment. In this theme, you have to know to click on the title to go to the page that has the blog and the comments.

    Where do I paste the above code?

    I love the above theme but most of my readers are complaining that they cannot find where to post a comment. Previously, on my webpage, which has a stream of blog entries (see http://www.rajibroy.com), every blog entry had a link to post a comment. In this theme, you have to know to click on the title to go to the page that has the blog and the comments.

    Rajib Roy

    Theme Author Arthur Gareginyan

    (@arthur-gareginyan)

    Try this.
    In home.php file, find this block:

    <div class="meta"><?php _e('Category: ', 'anarcho-notepad'); ?><?php the_category(', ') ?></div>

    and replace from this:

    <div class="meta"><?php _e('Category: ', 'anarcho-notepad'); ?><?php the_category(', ') ?> | <?php comments_popup_link('LEAVE A COMMENT'); ?></div>

    Arthur, It worked like a charm. I embellished it a little by putting the following:

    <div class=”meta”><?php _e(‘Category: ‘, ‘anarcho-notepad’); ?><?php the_category(‘, ‘) ?> | <?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?></div>

    Theme Author Arthur Gareginyan

    (@arthur-gareginyan)

    Ok, I’m glad!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Comments on home page’ is closed to new replies.