Skip Navigation

[Resolved] displaying filter results (view)

This support ticket is created 5 years, 5 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)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by ericW-5 5 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#1337933

I am trying to: display search results in a grid of 4 columns whatever the number of results

Link to a page where the issue can be seen: hidden link

I expected to see: 4 columns, so 4 results per row on desktop

Instead, I got: depending on the number of results I can have 1 or 2 or 3 or 4 columns

#1338173

Shane
Supporter

Languages: English (English )

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

Hi Eric,

Thank you for getting in touch.

I took a look at this for you and i'm not sure what you mean because you won't be able to display 4 columns if the results are 1.

Currently you only have 2 posts that are published and right now your view will only display the 2 columns for these results.

If you add up to 4 posts then it will display as a 4 post column.

Thanks,
Shane

#1338225

HI Shane,

what I need is : whatever the number of results, they should be displayed with the same size, like 1/4 of the desktop width.

Currently if I have only 1 result 1 loop item is displayed as 100% width in 1 column, if I have 2 results they show up as 50% width each in 2 columns, if I have 3 results they take 1/3 each of the desktop width in 3 columns, and if I finally have 4 results they are displayed in 4 columns of 1/4 width each.

I only have 2 CPTs at mom but when all CPTs are going to be imported some queries will still show 1 results. And I want all results to be displayed with the same size whatever the number of results.

I can achieve that with CSS setting a max width of 25% for each loop item but I thought I could achieve that directly when selecting a grid display with 4 columns within Toolset views.

Let me know what I am doing wrong here.

Thanks in advance.
Eric

#1338927

Shane
Supporter

Languages: English (English )

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

Hi Eric,

I've resolved this for you by adding the class "small" to your table columns then style those columns with a width of 25%.

Please let me know if this helps.

Thanks,
Shane

#1338985

My issue is resolved now. Thank you!