Home › Forums › Add-ons › Repeater Field › Display as table with headings as columns › Reply To: Display as table with headings as columns
John Huebner
The short answer is that you can’t.
Thanks, that’s exactly the kind of encouragement I needed. 😉
As it turns out, tables can be transformed to have vertical headings using some CSS trickery, as this minimal example proves.
This is what I got the repeater field to look like using 35 lines of CSS:
It remains fully functional (adding, deleting and re-ordering rows) without touching any of the JavaScript. Here’s the code (inserted into functions.php
). There’s undoubtedly room for improvement, but it seems to work quite well so far.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.