WordPress.org

Forums

Anarcho Notepad
[resolved] Comments on home page (8 posts)

  1. gogzy
    Member
    Posted 11 months ago #

    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.

  2. gogzy
    Member
    Posted 11 months ago #

    Solution:

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

    Posted 11 months ago #

    Hello,

    I'm glad that you found a solution.

  4. rajibroy
    Member
    Posted 10 months ago #

    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.

  5. rajibroy
    Member
    Posted 10 months ago #

    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

  6. Arthur Gareginyan
    Member
    Theme Author

    Posted 10 months ago #

    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>
  7. rajibroy
    Member
    Posted 10 months ago #

    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>

  8. Arthur Gareginyan
    Member
    Theme Author

    Posted 10 months ago #

    Ok, I'm glad!

Reply

You must log in to post.

About this Theme

About this Topic