Comments offset not working as expected
-
Hello,
I might be understanding the usage of the “offset” array option supported by get_comments, but my understanding is that if there are 10 comments and you set an offset of 5, this means that comments 6-10 are shown. It is not working as expected though with the following syntax:
$comments = get_comments(array('order' => 'ASC', 'offset' => $offset, 'status' => 'approve')); foreach ($comments as $comment) { ...
Any idea why this is?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Comments offset not working as expected’ is closed to new replies.