Skip Navigation

[Resolved] Fill the last row in a paginated grid View before requiring pagination

This support ticket is created 4 years, 10 months ago. 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 8 replies, has 2 voices.

Last updated by danielM-30 4 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#1788461

Sorry Christian.
My client has come back to me and raise a fresh point.

See the image attached.
with the sort set 30000 - 130000
the results appear across 2 pages. Why is there a gap at the bottom of the first page (missing two) and yet properties appear on the second page. Could the properties not fill up first page before going onto page 2?

Dan

#1790625

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Daniel,

Thank you for getting in touch.

The reason for this is because you have limited your view to displaying 10 items per page but you have a 3 column layout.

10 cannot be divided by 3 equally so you need to set your view items per page to a value that is evenly divisible by 3 such as 6 or 9.

This should resolve the issue with the item being out of place.

Thanks,
Shane

#1790775

Thank you Shane

I had problem with the search result cells not being linkable - Your colleague Christian set up a shortcode and redid the entire
result loop in code -

If I now change the display grid to 9, as you suggest, will I have to redesign the function and styling of the loop again, or can I keep Christians coding intact?
I suppose I'm trying to say - Can I simply just change the grid, without having to re-do the cell?

#1793375

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Daniel,

Changing the loop count to 9 shouldn't affect your design. Essentially you will just have 1 less post being displayed by the view loop.

So it shouldn't affect the code that Christian had provided. If it does then you can simply share the code and it's purpose and I will see what I can do to help this fit the new 9 post layout.

Thanks,
Shane

#1793481

Thanks Shane

I will implement this once the other ticket/issue is sorted out.

Thanks again

#1795475
Grid display.jpg

Hi Shane

So, to change the grid "loop count to 9". it doesn't look clear for me to change it. See image attached.
Is it because Christian has made my cells in HTML so now I can't change it in Blocks?

I am afraid to play around with this because I don't want to accidently alter the code.

#1795487

This ticket is not resolved see above

#1795707

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2020-09-30 at 8.57.38 AM.png
Screenshot 2020-09-30 at 8.57.48 AM.png

Hi Daniel,

To adjust the pagination you will need to use the Block navigation to find the pagination section in your view. See Screenshot

Once you have done this click on the View Pagination settings in the blocks tab on the right hand side. See second screenshot.

From there just modify the items per page to 9.

Please let me know if this helps.
Thanks,
Shane

#1795849

My issue is resolved now. Thank you!