Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #210528

    Hi Enfold team,

    I have a trouble with comments in the page.
    When I choose option to break comment into pages, then it looks like only half loaded, so some tab is inaccessible and cannot see the older comments.
    Also another question, the comments order is older to newest. How to make the order in newest to older. I want to show first comment is the newest.

    Thank you,
    Surya

    #210551

    Hey dewasurya!

    Can you please give us a link to the page with the comments section?

    Edit includes > comments.php, find this code on line 83 to change the order of the comments:

    
    //get comments
    $comment_entries = get_comments(array( 'type'=> 'comment', 'post_id' => $post->ID ));
    

    Replace it with:

    
    //get comments
    $comment_entries = get_comments(array( 'type'=> 'comment', 'post_id' => $post->ID, 'order' => 'ASC'));
    

    Regards,
    Ismael

    #210560

    Hi Ismael,

    Thank you for your reply.
    The page with comments section is here; http://villabugis.com/our-villas/villa-krisna/#tab-id-7
    the comment is in the tab called “review”

    Regards,
    Surya

    #210566

    Hi!

    Did you add the comments shortcode on the tab element? I’m sorry but I think it will cause some issues. You need to place the comment elements outside the tab element.

    Cheers!
    Ismael

    #210571

    Hi.

    I have fixed the order issues. Thanks.
    Regarding the tab, yes, because I need the comments in the tab section. If possible could you fix this issues. I
    Regards,
    Surya

    • This reply was modified 10 years, 11 months ago by dewasurya.
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘comments in page and order’ is closed to new replies.