Hi,
yes, this indeed possible. In your case, the correct Shortcode would be
[table id=1 hide_rows=all show_rows=1,2 /]
This will first hide all rows and then just make the header row (row 1) and row 2 (for Tomas).
As this is not very flexible (for example, you will have to change all Shortcodes if the order of the people changes), I’m already working on a better method, that allows filtering directly for the name. I have this ready for the predecessor of TablePress, but haven’t yet had the time to finish it for TablePress, but that should happen this week. I will then post here again and show you how to use that more flexible solution.
Regards,
Tobias
Thread Starter
wahliz
(@wahliz)
Hi,
Thanks for your quick reply. I tried the shortcode u attached but it didn´t work. Instead of showing 2 specific rows the whole table is now visible. Look at my link here:
http://tomaswahlstedt.se/hfp/truppen/kristian-ellerstad/
I really looking forward to this more flexible solution. Keep us updated and thanks for a great plugin!
Hi,
thanks for reporting this. As it turns out, there’s a currently a bug with the “all” value not working. I was able to fix it, thanks to your report, so this will work as expected in the next release 🙂
Until then, you could work around this, by using
[table id=1 hide_rows=2-5 show_rows=2 /]
which emulates the “all” value for this table.
The more flexible filtering solution will enhance this even further, so I hope to get that done in the next few days.
Regards,
Tobias
Hi,
a first version of that extension is now available at http://tablepress.org/extensions/row-filter/ Please install that with the instructions at http://tablepress.org/extensions/
You can then use a Shortcode like
[table id=1 filter="Kristian Ellerstad" /]
Regards,
Tobias