WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] comments on blog page (7 posts)

  1. oliverspies
    Member
    Posted 1 year ago #

    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?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  3. oliverspies
    Member
    Posted 1 year ago #

    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 ...

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    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();?>.

  5. oliverspies
    Member
    Posted 1 year ago #

    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

  6. alchymyth
    Forum Moderator
    Posted 1 year ago #

    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(); ?>

  7. oliverspies
    Member
    Posted 1 year ago #

    this is exactly what i needed!

    Thank you !

Topic Closed

This topic has been closed to new replies.

About this Topic