We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Comments pagination

How Do I?

xeenon's avatar
xeenon
15 posts
8 years ago
xeenon's avatar xeenon

Hello EE community.

I need help with comments pagination. Iam using ordinary code to call comments.

{exp:comment:entries sort="asc" limit="20" paginate="both"}

    {comment}
    By {name} on {comment_date format="%Y %m %d"}

    {paginate}
        {if previous_page}
            <a href="http://{auto_path}">Previous Page</a>  
        {/if}
        {if next_page}
            <a href="http://{auto_path}">Next Page</a>
        {/if}
    {/paginate}
{/exp:comment:entries}

By using asc sorting the new comments are on the last page. Ho to get reverse pagination? I need to have latest comments on first page.

       
bobural's avatar
bobural
20 posts
7 years ago
bobural's avatar bobural

not sure if this helps but have you tried: sort=”desc” ?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.