WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] comments on blog page

[Resolved] comments on blog page

  • b1

    @oliverspies

    hi,

    on my blog page the whole article is shown (not only a excerpt)
    i would like to show the comments and comment form also on the blog page and not get redirected when i click on add a comment

    does anyone know how to do this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • esmi

    @esmi

    Forum Moderator

    the whole article is shown (not only a excerpt)

    You may need to start customising your theme’s template files – possibly via a child theme. Have you tried using the <!--more--> tag in your post’s content?

    i would like to show the comments and comment form also on the blog page

    The standard behaviour in most themes is to show comments and the comment form on the single post page only. Changing this behaviour may involve extensive theme editing and coding.

    b1

    @oliverspies

    hi,

    thanks for your response.

    its my purpose to show the full content and not only a excerpt!

    its ok for me if this means extensive theme editing and coding – i just would like to know where to begin …

    esmi

    @esmi

    Forum Moderator

    Your theme’s index.php template file may be using <?php the_excerpt();?> instead of <?php the_content();?> in its template files. Try creating a child theme, editing the relevant template file(s) in your child and replacing <?php the_excerpt();?> with <?php the_content();?>.

    b1

    @oliverspies

    i’m ok with the way the content is shown – i want it this way
    i just want the comments to be shown always beneath the content, not only on the single post pages

    Moderator Michael

    @alchymyth

    Forum Moderator

    by default, the comments are only shown on ‘singular’ pages, i.e. single posts and static pages.

    overwriting this is not recommended and might cause problems as many functionalities of ‘wp_list_coments()’ do not work properly on index pages.

    general:

    add this into the loop of the index template (in a child theme?) where you want to show the commments and comment form:

    <?php gloabal $withcomments; $withcomments = 1; comments_template(); ?>

    b1

    @oliverspies

    this is exactly what i needed!

    Thank you !

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] comments on blog page’ is closed to new replies.