The first few times I searched for ways to insert tables into WordPress led me to websites that invited me to download plug-ins. Eventually, I found a way to just copy and paste simple tables I wanted to post on my blog.
Tables Generator makes it possible to just paste a table from Excel or just upload a CSV file and then it will do most of the coding work.
Here is how the copy-and-paste method worked. I’m using data about the Year of the Horse in the Chinese Zodiac, just to be in season.
- I copied a table from my spread sheet.
- In Tables Generator, I click on the following. (Optional: The table can be edited after it is generated using the available tool bar.)
- Then, I copied and pasted the generated HTML code into the WordPress Blog Post
- Because the upper portion of the code is CSS, which is not rendered, I first had to delete everything between <style> and </style>. (I had to select “Zero CSS” because the other themes won’t show up anyway.)
That was it! I previewed the table and it looked like this:
|Start Date||End Date||Heavenly Branch|
|January 25, 2006||February 12, 2007||Fire Horse|
|February 11, 2018||January 31, 2019||Earth Horse|
|January 30, 1930||February 16, 1931||Metal Horse|
|February 15, 1942||February 4, 1943||Water Horse|
|February 3, 1954||February 23, 1955||Wood Horse|
|January 21, 1966||February 8, 1967||Fire Horse|
|February 7, 1978||January 27, 1979||Earth Horse|
|January 27, 1990||February 14, 1991||Metal Horse|
|February 12, 2002||January 31, 2003||Water Horse|
|January 31, 2014||February 18, 2015||Wood Horse|
|February 17, 2026||February 5, 2027||Fire Horse|
|February 4, 1938||January 23, 1939||Earth Horse|