Skip Navigation

[Résolu] Reverse Index loop with pagination

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 réponse, has 2 voix.

Last updated by Minesh Il y a 1 an et 1 mois.

Assigned support staff: Minesh.

Auteur
Publications
#1557859

Hi, Is it possible to number posts in pages in a descending manner?

page 1
- 87 post title
- 86 post title
- 85 post title
- 84 post title
- 83 post title

page 2
- 82 post title
- 81 post title
- 80 post title
- 79 post title

#1559393

Minesh
Supporter

Languages: Anglais (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Toolset View's offers a shortcode [wpv-loop-index] but it works to display the Ascending index.
=> https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-loop-index

Maybe you can file a feature request to allow this shortcode to support Descending index as well using the following form:
=> https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

You need to write your own custom shortcode to display index in descending order. Please check the following related ticket where I've shared the solution to add the index in Ascending index using the incrementor shortcode:
=> https://toolset.com/forums/topic/display-item-number-in-views/#post-484259
You should adjust the shortcode to decrement the value.