How to get comments page number
-
Hello all!
I have one problem – i need to get selected comments page number.
It is kinda non standard problem, cause my comment ordering in WP is DESC, and latest comments page is shown – sou it always will be first page.
But in one page i need to show comments in ASC ordering and sou if there are 3 pages, if no page is selected, i must show last (3rd) page.
The problem in this case is – i cant know if user just entered the page, or it selected 1st comments page – cause in both cases ‘cpage’ will be 1 (if user just entered the page i use set_query_var( ‘cpage’, ‘3’ ) to show last page (3))Is there any STANDARD solution to solve this problem – i need to know – user selected page or not.
Also it seems that it is not possible to pass $arg[‘page’] to the function wp_list_comments() … this arg is ignored ???
[a friendly reminder: http://codex.wordpress.org/Forum_Welcome#No_Bumping ]
- The topic ‘How to get comments page number’ is closed to new replies.