Hi. I’ve set up date-based sorting for my loop. Posts get sorted under labels of “Today”, “Yesterday” or “_date_” immediately after posting. The labels only appear once for each date and all posts made on that date fall under the label. The problem is, every time a page becomes full and the newly opened page has posts from a date that started on the last page, the label gets displayed again. Would it be possible to edit the code in such a way, that the label wouldn’t be shown when opening a new page? For example: Page 1 ends with February, 2nd posts. 3 posts appear on page 1, 3 posts appear on page 2. Currently, February 2 would be shown on both, page 1 and page 2. The goal is to have it displayed only on page 1.
I’ve set up an infinite scroll script for page switching with an item selector of label+post, but that doesn’t seem to be a problem. Labels get displayed after every load as they would when switching pages.
I would be really thankful if anyone could help.
- The topic ‘Remove date sorting on a page-to-page basis’ is closed to new replies.