tables in posts

Currently reading:
tables in posts

Your wish is my command :)

Column1|Column2|Column3
1|Ben|Rocks
2|Stu|Doesn't
3|Custard|Wishes

Code is as follows (you dont' need to do a head if you don't want to)

PHP:
[table="head"]head col1|head col2|head col3
row1 col1|row1 col2|row1 col3
row2 col1|row2 col2|row2 col3[/table]

Rows are sortable by clicking the header - and yes, you use pipe symbols (|) to split cells.

Table without head would just be like this...

PHP:
[table]ben|tom|vicky
rob|mike|claire[/table]

ben|tom|vicky
rob|mike|claire
 
Back
Top