Skip Navigation

[Resolved] How to display pagination for post type archive pages

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

Problem:
How to display pagination for post type archive pages

Solution:
for post type archive, if you want to display the pagination you need to use the shortcode:

[wpv-pager-archive-nav-links output="bootstrap"]

You can find the proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/pagination-not-being-shown-for-logged-out-users/#post-1224501

Relevant Documentation:
=> https://toolset.com/documentation/user-guides/custom-pagination-for-wordpress-archives/#pagination-controls-shortcodes

This support ticket is created 5 years, 7 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Sasank 5 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#1224430

Hello,

I added a limit of 20 posts and added pagination. Everything is working fine if I am logged in but if I log out the pagination is not being shown. I checked the source code and pagination html is not present! Its same in all views I am using,
hidden link
hidden link
hidden link

I am using this code,

[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
	<wpv-loop>
		[wpv-post-body view_template="content-template-for-jobs-list"]
	</wpv-loop>
	<!-- wpv-loop-end -->
	[wpv-pagination][wpv-pager-nav-links first_last_links="true" previous_next_links="true"][/wpv-pagination]

	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No jobs found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

Is there anything wrong I am doing?

Regards,
Sasank

#1224501

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - I review all the links you shared and I see that all those links belong to post type archive.

Basically - for post type archive, if you want to display the pagination you need to use the shortcode:

[wpv-pager-archive-nav-links output="bootstrap"]

More info:
=> https://toolset.com/documentation/user-guides/custom-pagination-for-wordpress-archives/#pagination-controls-shortcodes
=> https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-pager-archive-nav-links

#1224642

Thank you Minesh!

Wonder how it was working when I was logged in. But, that solved the problem.