Skip Navigation

[Resolved] View loop display only two columns in table

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to create a table-style display for my View, but I cannot change the number of columns. It seems like I can only show two columns by default, and there is no way to change that.

Solution: You can adjust the number of columns when you select the Table Row block in the Block Editor. Use the Block Navigation menu at the top of the screen if necessary to select the Table Row block, then you can adjust the number of columns in the block configurations.

This support ticket is created 4 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by juan-ulisesA 4 years, 5 months ago.

Assisted by: Christian Cox.

Author
Posts
#1712899
Screen Shot 2020-07-20 at 12.15.43.png
Screen Shot 2020-07-20 at 12.15.02.png

Tell us what you are trying to do?
I created a post type with its fields. I created a page and I added a Block View, then I selected a table type. But it displayed only 2 headers and 2 columns and I need 7.
I found on a forum that you should add more columns via html but inside the html it displays more html tags, so If I change that configuration I break the loop because web have to set headers and rows on different htmls.

Is there any documentation that you are following?
https://toolset.com/course-chapter/creating-custom-lists-of-products-and-services/

Is there a similar example that we can see?
Not really in your docs only use grids but not tables.

What is the link to your site?
Testing website: hidden link

#1713159
Screen Shot 2020-07-20 at 5.37.44 PM.png
Screen Shot 2020-07-20 at 5.39.54 PM.png

Hello, you can adjust the number of columns for your View table in the Table Row block configurations in the Block Editor. Use the Block Navigation menu at the top of the screen to select the Table Row block (see the screenshots here). Then in the block configurations, you will have the option of setting the number of columns. This will adjust the number of columns in the table body and the table header to match the body. Please see the screenshots here for more information and let me know if this is unclear.

#1713369

My issue is resolved now. Thank you!