Skip Navigation

[Résolu] How to display pagination for post type archive pages

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 5 années. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 réponses, has 2 voix.

Last updated by Sasank Il y a 5 années.

Assisted by: Minesh.

Auteur
Publications
#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: Anglais (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.

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