Home›Toolset Professional Support›[Resolved] Split: Hiding parents with no children – show pagination or adjust pagination when hiding parent post when no related child available
[Resolved] Split: Hiding parents with no children – show pagination or adjust pagination when hiding parent post when no related child available
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.
Hello Minesh,
Your solution works, but there is a strange behaviour of the pagination. I set the pagination to max 5 parents per page in the parents view and in output the first page is empty while other pages show one parent only (with correct children) and many other empty pages afterwards. Removing the pagination the output is correct.
Please let me know.
thanks
Hello. Thank you for contacting the Toolset support.
Can you please share problem URL where you are displaying the view as well as admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Hello Minesh,
you solution is brilliant and works perfectly as far as I can see. I wouldn't ever be able to do it without your help. I understand in PHP you count the children before filtering the parents, I tried to do the same with a view but then I couldn't find any way to filter. I suppose hiding parents with no children could be common issue for other users too so please write and publish a generic documentation of your solution or - even better - ask developers to implement the feature in the view code so that it will be easy to choose the option if needed. Thank you very much.
Kind regards
Nicola