Archived topic
Custom Post Navigation With GenerateBlocks Issue
9 replies · Started by Jose on April 11, 2021
Hello,
I built a custom post navigation with the block element module and GenerateBlocks according to this video: https://www.youtube.com/watch?v=J-VIWJiJBDQ&t=469s. It turned out great, but now it appears to have an issue. Rightfully according to minute 7:33 of the video above, I selected the "Remove Container Condition" for both containers and selected "No Previous Post" and "No Next Post", respectively, to prevent the element from showing a black box in the containers as it does in the video when there is either no next or previous post.
However, on the page I have linked to in the private info field, it appears to be still showing the black box(despite selecting the "Remove Container Condition) when there is no next post. Can you please take a look? Thanks!
Hi there,
That's strange. The option should work.
Can you confirm that this is the setting you are using for the Next post container?
https://www.screencast.com/t/ofM6g6e83ZO
Yes, that is the setting I am using for the next post container. I have also attached a screenshot of it in the private info field. If it is relevant, I also have the Classic Editor plugin activated.
I can't replicate the issue on my end so let's go through some debugging steps to eliminate any odd conflicts.
Can you disable all plugins except GP Premium to test?
Are you using beta 3?
Yes, I am using GP Premium Beta 3. I have created a staging site with an exact replica of my site for you to peruse and to avoid the disabling of plugins on my live site. I have attached the login credentials in the private info field so that you can access the backend, disable plugins safely and test/take an in-depth look at the issue with no problem. I hope this helps in pinpointing what is going on.
Let me know if you need anything else. Thanks!
Can you please disable all plugins except GPP and GB for me in the staging site as well?
Thanks.
Not a problem! I have disabled all plugins except GPP and GB there. Let me know if you need anything else. Thanks!
Hi there,
In the post navigation dynamic text option, you've told it to only show next/previous link in the same term.
You need to do the same for the "Remove container condition", so that both areas are working under the same conditions.
That should fix it :)
That fixed it! Parenthetically, I enabled this option according to exactly minute 4:02 of the video, which let us know it could link to posts under the same category if we wanted, and now I noticed that the video didn't let us know we should have done the same for the "Remove container condition" as well if we had enabled this option before. Maybe that could be fixed. Thanks anyway! Have a great day.
Thanks for the heads up! Glad it worked :)