Skip Navigation

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

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 5 años, 8 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Sasank hace 5 años, 7 meses.

Asistido por: Minesh.

Autor
Mensajes
#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,
enlace oculto
enlace oculto
enlace oculto

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

Idiomas: Inglés (English )

Zona horaria: 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.