[Resuelto] Next and Previous custom links for CPT is not working as expected
This support ticket is created hace 5 años, 6 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.
I use the same code on function.php and have tried to use the Custom code snippets from settings but got an error (see screenshoot)
The code is now on function.php and seams to work but it is not. In the following example we expect to get 12 post but when using the post navigation shortcode we can only navigate through 4 post
Link to a page where the issue can be seen:
Archive with 12 post enlace oculto
First post, navigate with the arrows to see that only 4 post are listed enlace oculto
Does the code still run or is there something wrong with my site?
*EDIT*
I've try to use the native function from the theme in a single.php and got the same error for CPT so the problem come from my CPT. I have 3 CPT and all have the same issue.
Post nav on regular Blog post work as expected: enlace oculto
Shame on me, I'm so sorry for that. I totally forgot to disable all the security tweeks. Please forgive me, you should be able to access now.
Sorry!
Have a great day
The issue you describe does also matter to me but the one that really concern me is the one described in the previous message.
I understand is not easy to understand, neither it is to explain it 😉
To replicate follow this steps:
===========================
1. Go to the main page for the CPT enlace oculto
2. Count the number of post (AKA 12 post for this CPT)
3. Go to the first post
4. Use the arrow > to navigate
5. Start counting how many post you can navigate until there navigation stop working
6. Compare the number of post and the total count of the posts you were able to navigate
From my side I can only navigate through 4 post but there are 12 post in total. This is the error that really matter to me
=================
Of course I would love to be able to navigate by post name and not by ID and also would love to be able to respect the search query when navigating from post. But I will ask for help in another ticket for those topics. Right now the only thing that I need is to be able to navigate from Post-1 to Post-12
Your solution will not solve my needs as I wont be able to customize the format of the output.
Anyway I already tried this way and the problem persist. There is no way I can see every post when using the post navigation.
You can see it by yourself: enlace oculto
I tried creating my own custom pagination with the default wordpress pagination functions and still the same issue.
Can i make changes to this site as I see fit ? I want to try changing the theme to see if this has any effect. You should get all the 12 posts through the pagination.
Looking forward to hearing from you on this.
Thanks,
Shane