I want to display the following, imagine the list is paginated to show five posts, and there are 22 posts in total. The most recent is displayed at the top.I want to get the number in brackets.
First Page:
- “Post Written Today” (#22)
- “Post Written Yesterday” (#21)
- “Post Written 2 Days Ago” (#20)
- “Post Written 3 Days Ago” (#19)
- “Post Written 4 Days Ago” (#18)
Second Page:
- “Post Written 5 Days Ago” (#17)
- “Post Written 6 Days Ago” (#16)
- “Post Written 6 Days Ago” (#15)
- “Post Written 7 Days Ago” (#14)
- “Post Written 8 Days Ago” (#13)
Third Page:
- “Post Written 8 Days Ago” (#12)
- “Post Written 9 Days Ago” (#11)
- “Post Written 9 Days Ago” (#10)
- “Post Written 10 Days Ago” (#9)
- “Post Written 10 Days Ago” (#8)
Fourth Page:
- “Post Written 11 Days Ago” (#7)
- “Post Written 12 Days Ago” (#6)
- “Post Written 12 Days Ago” (#5)
- “Post Written 15 Days Ago” (#4)
- “Post Written 15 Days Ago” (#3)
Fifth Page:
- “Post Written 18 Days Ago” (#2)
- “Post Written 19 Days Ago” (#1)
Off the variables available, only {absolute_count} is ‘outside’ of pagination. In the example above, on all but the last page, {total_results} will show 5. On the last page it will show 2. You also cannot get access to the pagination variables, (not outside of {pagination} which affects the display).
@ Wouter, I replied to Mark that {total_results} only shows the count per page. Why would using a different variable with it change that fact?