00Days
16HRS
43MINS
44SECS
,

How to Add Images and Videos to a WordPress Table (Step by Step)

Add images and videos to a WordPress table: a recipe table with dish photos, prep times and recipe video thumbnails

A table full of plain text does its job, but a small photo or a short video in the right cell can make it far easier to read. Product tables show what each item looks like, recipe tables show the finished dish, and a video next to a feature can explain it better than a long sentence.

In this guide you will learn how to add images and videos to a WordPress table, first with the default WordPress Table block and then with WP Table Builder, a free drag and drop table plugin. You will also see a live example and a few tips to keep media tables fast and tidy.

What Does Adding Media to a Table Mean?

Adding media to a table means placing images, video players or audio players inside table cells, next to the text they belong to. Instead of a link that sends readers somewhere else, the photo or video sits right in the row.

Add images and videos to a WordPress table: the same recipe table with text only and with dish photos and video in the cells
The same table with text only (left) and with photos and video in the cells (right).

The most common types of media in WordPress tables are:

  • Images: product photos, team headshots, logos, screenshots or dish photos.
  • Linked images: an image that opens a product page or a larger version when clicked.
  • Embedded videos: a YouTube video that plays inside the cell.
  • Self hosted video and audio: an MP4 or MP3 file from your own Media Library with a simple player.

When Should You Add Images or Videos to a Table?

Media works best when it helps readers compare or decide. Good examples include:

  • Product and comparison tables, where a photo shows each item at a glance.
  • A restaurant menu table with a photo of every dish.
  • Team or speaker tables with a headshot in the first column.
  • Review tables, such as a customer reviews table with reviewer photos.
  • Course or tutorial tables with a short video for each lesson.

If a picture does not add new information, leave it out. A table with too many large images becomes slow and hard to scan.

Option 1: Add Images with the WordPress Table Block

The default Table block in the WordPress block editor can hold small inline images. It is quick for a simple table, but it has no support for video players.

  1. Add a Table block to your post or page and choose the number of columns and rows.
  2. Click inside the cell where you want the image.
  3. In the block toolbar, open the small dropdown arrow (More) and choose Inline image.
  4. Pick an image from the Media Library or upload a new one.
  5. Click the image in the cell and set a smaller width so it fits the column.
  6. Type the text for the other cells, then save or update the post.

This method has some limits. You cannot drop a video player into a cell, there are few styling options, and every image needs its width set by hand. Wide tables with images also tend to squeeze on phones. For anything beyond a few small pictures, a table plugin gives you more control.

Option 2: Add Images and Videos with WP Table Builder

WP Table Builder lets you drag an Image element into any cell, and it has Custom HTML and Shortcode elements for videos. All three elements are part of the free plugin. Here is how to build a media table step by step.

Step 1: Create a New Table

In your dashboard, go to WP Table Builder → Add New. Give the table a name, then start from a blank table or a template. Pick the number of columns and rows you need; you can add more later.

The WP Table Builder builder with the top bar, the Elements panel on the left and a comparison table on the canvas

Step 2: Drag the Image Element into a Cell

Open the Elements panel on the left and drag the Image element into the cell where the picture should go. Most media tables put the image in the first column so readers see it first.

An element dropped into a cell of a blank WP Table Builder table

Step 3: Choose the Image and Add Alt Text

Click the Image element to open its settings. Use Choose Image to pick a photo from the Media Library, then set the alignment and size. Always fill in Image Alt Text with a short description, such as “Tomato basil soup in a white bowl”. It helps screen reader users and search engines understand the picture.

WP Table Builder Image settings with Choose Image, Replace image, Image Alignment and Image Alt Text

The Image element also has a link option. Add a URL to make the image clickable, and choose whether it opens in a new tab and whether the link is nofollow. This is handy for product images that should open the product page.

Step 4: Add a YouTube Video with the Custom HTML Element

To play a YouTube video inside a cell, drag the Custom HTML element into the cell and paste the video’s embed code. On YouTube, click Share → Embed and copy the iframe, or use a short version like this:

<iframe src="https://www.youtube-nocookie.com/embed/VIDEO_ID" width="100%" height="200" frameborder="0" allowfullscreen></iframe>

Replace VIDEO_ID with the ID from your video link. The youtube-nocookie.com address is YouTube’s privacy friendly embed. For safety, WP Table Builder keeps YouTube embeds in Custom HTML but removes iframes from most other video sites, so for Vimeo or other platforms use Step 5 with your own file, or link to the video with a Button or text link.

Step 5: Add Your Own Video or Audio with the Shortcode Element

If the video is in your Media Library, you do not need YouTube at all. Drag the Shortcode element into a cell and use the built in WordPress video shortcode with the file URL:

[video src="https://example.com/wp-content/uploads/recipe-video.mp4" width="320"]

WordPress shows its standard video player in the cell. The same works for audio files with the [audio] shortcode, which is useful for podcast episodes or language lessons. Keep video files short and compressed so the page loads quickly.

Step 6: Turn On Lazy Loading for Images

Tables with many photos can slow a page down. WP Table Builder includes free lazy loading: go to WP Table Builder → Settings, open the Lazy Load tab and switch it on. Images then load only when readers scroll near them.

WP Table Builder Lazy Load settings tab with the enable switch, preview and general options

Step 7: Check the Mobile View and Embed the Table

Open the Responsive tab to see how the table looks on tablets and phones. For media tables, stacking each row into a card often works well, or you can turn on horizontal scrolling. Our guide on responsive tables in WordPress explains each option.

WP Table Builder Responsive tab with the Mobile breakpoint selected, showing Stack Direction, First Row As Header and a stacked table preview

When you are happy, click Save, then use Embed to copy the shortcode, or add the WP Table Builder block in the block editor and pick your table.

WP Table Builder Embed this table dialog showing the wptb id shortcode, the Copy button, and Gutenberg, Elementor and Divi options

Example: A Recipe Table with Photos

Here is a live table built with WP Table Builder. Each row has a dish photo made with the Image element, a short description, the prep time and a diet tag. The rounded corners come from the Table Border Radius setting.

Photo

Dish

Prep time

Diet

Tomato basil soup

Tomato basil soup
Slow simmered, finished with fresh basil

25 min

Vegan

Spaghetti pomodoro with basil in a white bowl

Spaghetti pomodoro
Bright tomato sauce and parmesan

20 min

Vegetarian

Grilled salmon fillet with herbs

Grilled salmon
Crisp skin, lemon and herb butter

30 min

High protein

Slice of triple chocolate cake

Chocolate cake
Three layers with a fudge frosting

50 min

Dessert

Powered by WP Table Builder

You could add a fifth column with a recipe video in each row using the Custom HTML or Shortcode element from Steps 4 and 5.

Tips for Using Images and Videos in Tables

  • Resize before uploading. A thumbnail column rarely needs images wider than 300 to 600 pixels.
  • Use modern formats. WebP images are much smaller than PNG or large JPG files.
  • Keep the same shape. Square or same ratio photos keep rows even and neat.
  • Write alt text for every image. Describe what the picture shows in a few words.
  • Limit videos per table. One or two players are fine; ten can make the page heavy.
  • Keep text short next to media. Let the picture do the work, and avoid the common table design mistakes like clutter and heavy borders.
  • Test on a phone. Make sure images do not push the table wider than the screen.

Frequently Asked Questions

Can I add images to a WordPress table without a plugin?

Yes. The default Table block lets you insert small inline images into cells from the formatting toolbar. It works for simple tables, but you cannot add video players, and styling and mobile options are limited.

How do I add a YouTube video to a WP Table Builder table?

Can I play my own MP4 video in a table cell?

Will images slow down my table?

Is the Image element free in WP Table Builder?

Conclusion

Adding images and videos to a WordPress table turns a plain list of facts into something people can see and understand quickly. The default Table block is fine for a few small pictures, while WP Table Builder gives you a drag and drop Image element with alt text and links, video through the Custom HTML and Shortcode elements, lazy loading and mobile settings, all for free.

Start with one column of small, sharp photos, add a video only where it really helps, and check the result on your phone. For more ideas, see how to merge cells in a WordPress table to group related media rows.

Comments

Leave a Reply