• Resolved 2independentpeople

    (@2independentpeople)


    Hello,

    I’m here due to a trouble with comments using the 2015 theme.

    The problem is that when i create a page, it is possible for visitor to leave comments (there is the “Leave a Reply box”) ; but when i create a post, there is not.

    I’ve read all posts and troubleshooting possible and yes, i’ve alerady :
    – allowed and enable all kind of possibilities for comments to be posted, via the dashboard.

    I went deeper in the code (i want to precise i’m absolutely a NON specialist) of the php files stored on the server, mainly comments.php, single.php and page.php, and here is what i found

    extract from page.php (page, for which comments work) :
    // Start the loop.
    while ( have_posts() ) : the_post();
    // Include the page content template.
    get_template_part( ‘content’, ‘page’ );
    // If comments are open or we have at least one comment, load up the comment template.
    if ( comments_open() || get_comments_number() ) :
    comments_template(); endif;

    extract from single.php (post, for which comments don’t work) :
    while ( have_posts() ) : the_post();
    /** Include the post format-specific template for the content. If you want to use this in a child theme, then include a file called called content-___.php (where ___ is the post format) and that will be used instead.*/
    get_template_part( ‘content’, ‘page’ );
    /*get_template_part( ‘content’, get_post_format() );*/

    // If comments are open or we have at least one comment, load up the comment template.
    if ( comments_open() || get_comments_number() ) :
    comments_template();
    endif;

    Since i made modification, replacing “get_post_format() by ‘page’, it is possible to leave comments on posts too.

    First question : why ?
    Is it because get_post_format cannot identify or get the proper data about the format and thus not load the comments_open ?
    Is it kind of a format.php file which is missing in the 2015 theme ?
    Or is it directly in the theme code, when i access it from the dashboard that i should modify something ?

    Second question :
    Currently, it is possible to leave a comment if you’re a registred user or if you’re not, only like Anonymous : if you don’t write your name and e-mail, comment will be sent and notified ; if you write down name and e-mail, comment will not be sent nor registred.

    What kind of action can be done for this ?

    Thanks for your help,

Viewing 5 replies - 1 through 5 (of 5 total)
  • First off, please don’t bump here – http://codex.wordpress.org/Forum_Welcome#No_Bumping (three deleted).

    If this is a brand new install of WP and Twenty Fifteen, you should not need to modify anything for comments to work.

    Have you modified anything in the theme or WP Core?

    Do you have any plugins active? Try deactivating those. If that doesn’t work, try switching to Twenty Fourteen.

    Thread Starter 2independentpeople

    (@2independentpeople)

    Hello,

    Sorry for that, i will not do it again.

    I just modified the things i mentioned, in the php files, no more.
    Pluggins yes, qtranslate, gallery caroussel and instagram widget.
    Do you think it might come from here ?

    Possibly, try deactivating the plugins and switching to Twenty Fourteen.

    And definitely reinstall a clean copy of Twenty Fifteen – you need to use a child theme if you are going to change theme files – otherwise your changes will be overwritten when WP is updated anyway.

    Thread Starter 2independentpeople

    (@2independentpeople)

    All right…. i deactivated qtranslate and then it works. I dowloaded a newer version (qtranslateX) and it works perfectly with comments and so on.

    Thanks a gain.

    All the best,

    Great! You’re welcome too :)!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Theme : 2015] Troubles with comments’ is closed to new replies.