• Hi!
    Visitors can view the comments and make new comments by clicking the comments link after the post. Is it possible to always have the comments and the comment form visible at the bottom of the page after the post?

    Adress to my blog: https://thort.se/blog

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Thort

    (@thort)

    Hi again !

    I’ve done a search and found:
    https://www.ads-software.com/support/topic/19585

    In this thread Randyd says:



    To have comments below the post put the line:
    <?php include(ABSPATH . ‘wp-comments.php’); ?>

    right below
    ?php the_content(); ?>



    I have tried to make this work. But I have failed. Could someone please help me? Where am I to put in this code? I’m a php beginner.

    Adress to my blog:
    https://thort.se/blog

    Here is the interesting part of my index.php:

    <!– S T A R T M A I N C O N T E N T –>

    <div id=”content”>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <?php the_date(”,'<h2>’,'</h2>’); ?>

    <div class=”post”>

    <h3 class=”storytitle” id=”post-<?php the_ID(); ?>”>” rel=”bookmark”>

    <?php the_title(); ?>

    </h3>

    <div class=”meta”>

    <?php _e(“Filed under:”); ?>

    <?php the_category(‘,’) ?> — <?php the_author() ?> @ <?php the_time() ?>

    <?php edit_post_link(__(‘Edit This’)); ?>

    </div>

    <div class=”storycontent”>

    <?php the_content(__(‘(more…)’)); ?>

    </div>

    <div class=”feedback” align=”right” style=”font-size: 16px;”>

    <?php wp_link_pages(); ?>

    <?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>

    </div>

    <!– <?php // trackback_rdf(); ?> –>

    </div>

    <div class=”postend”>• • •</div>

    <?php comments_template(); // Get wp-comments.php template ?>

    <?php endwhile; else: ?>

    <?php _e(‘Sorry, no posts matched your criteria.’); ?>

    <?php endif; ?>

    <div style=”font-size: 20px;”>

    <?php posts_nav_link(‘ — ‘, __(‘« Föregående sida’), __(‘Nästa sida »’)); ?>

    </div>

    </div>

    <!– E N D M A I N C O N T E N T –>

    Thread Starter Thort

    (@thort)

    Hi!

    Just want to tell how things are going.

    I’m glad to say I have come a little bit toward a solution. The following php tag gives me a comment box at the end of every post:

    <?php include(TEMPLATEPATH.’/comments.php’);?>

    But, if there are comments to the post they are not displayed. If I click the comments link I get the comments displayed along whith a second comment box. So, I get two comment boxes.

    I know this can be fixed. But what is needed is php and WordPress structure knowledge. And I don’t have enough of that.

    If someone reads this and have some ideas I would be thankful.

    PS. I hope I haven’t put this thread in wrong place among the support forums DS.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Comments visible after post’ is closed to new replies.