Skip Navigation

[Resolved] Continuation of the Ordered list in case of pagination

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user is numbering their posts using views, but what the number to continue after paginating instead of resetting.

Solution:
To fix this I would recommend using the following shortcode to do the counting.
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-loop-index

This support ticket is created 4 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by deepS 4 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#1308287
Screenshot_2.jpg
Screenshot_1.jpg

Hi,
I have created one view with pagination but the problem is with the changes in pages it generates new numbers for the list. I want a continuation of the list numbers even page changes in pagination. Please check the URL hidden link (at the bottom).

Screenshots are attached for better clarification.

#1308319

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

That is happening because the list is getting reset after each pagination.

To fix this I would recommend using the following shortcode to do the counting.
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-loop-index

Thanks,
Shane

#1308343
Screenshot_3.jpg

I have created the list with the shortcode suggested by you. But the problem is they are not in the same line. See the screenshot.
I have used the following code:

[wpv-items-found]
	<!-- wpv-loop-start -->
	<wpv-loop>
		[wpv-loop-index accumulate="true"]. [wpv-post-body view_template="loop-item-in-expired-job-vacancy-2"]
	</wpv-loop>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
#1308359

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.