,

November 11, 2020

How To Extract Table Data From Posts Using WordPress

Share :

Subscribe for the latest update on our products
Blog Subscribe Form

We will never spam you. We will only send you product updates and tips.

What if we tell you thereโ€™s an easy way to spice up your WordPress website? You can add data to WordPress tables from posts and customize them all you want! After our illustration of How To Embed Online Data Tables in WordPress Posts/Pages, itโ€™s time to show you the other way around.

Pulling all of the data from a WordPress post and displaying them in a tabular format might sound like a hassle to some of you. However, we have the perfect solution. Bear with us for a while.

Why consider tables to show WordPress posts

If you post a lot of content, you will encounter two types of audience- a dedicated reader who follows everything you post and a picky reader who only clicks on a post they find attractive.

Clearly, a table with details is more convenient than a long, wordy paragraph. A tabular appearance is always easy to follow and organized. As a result, your WordPress posts can only reach everyone if you list them on a data table!

A table with multiple columns and rows can show short key info that encourages clicks. Itโ€™s a shortcut for readers to look for the information they want.

Best ways to add data to WordPress tables from posts

We have chosen the all-rounder WordPress table plugin, Ninja Tables, for this demonstration- a Pro addon with a multitude of smart features. You can fold up your WordPress posts into a table without any additional plugin.

Among the 8 productive ways of creating tables, Ninja Tables stands out because of its integration with WP Posts or Custom Post Types. This built-in feature lets the user add data to WordPress tables from posts in dynamic styles.

1. Custom Column on WP Posts Table

First of all, go to the Ninja Tables dashboard and click โ€œAdd Tableโ€.

create WordPress posts and add data to WordPress tables from posts

A popup box will appear with all the different ways you can create a table. Click on WP Posts. The box will show several fields and “Construct Table from Posts/CPTs” (Custom Post Type) as a heading.

We have chosen a single field type โ€œPostโ€ and switched it to the box on the right using the arrow.

create a table in WordPress and add data to WordPress tables from posts

After clicking on โ€œNextโ€, another window will show up with different properties of the post. These properties are the column of the table you are about to create.

Select properties and move them to the right, then โ€œSaveโ€ again. You can also set conditions with the โ€œ+โ€ button.

best ways to use Ninja Tables to add data to WordPress tables from posts

Now youโ€™d be surprised how quickly you can create a table from your post data!

Right after you save step 2, you will be taken to the classic Ninja Tables interface, where you can customize, configure, and design the entire table.

how can I use Ninja Tables to add data to WordPress tables from posts

You can modify or customize post properties from โ€œQuery Settingsโ€ and โ€œAdd New Columnโ€.

Hereโ€™s another amazing feature. If thereโ€™s a permalink category or a post tag, you can sort it from the โ€œTable Configurationโ€ panel.

how to use a table plugin to add data to WordPress tables from posts

You can also skim through the documentation if you want.

2. ACF Field Integration

Among many versatile features, this one magnifies Ninja Tablesโ€™ capacity to create tables. Advanced Custom Field ensures this plugin is more dynamic, and itโ€™s only available when users create WP Post.

use a table plugin to add data to WordPress tables from posts

Click on โ€œAdd Newโ€ and proceed to name it, โ€œ+Add Fieldโ€, and Field Label. Now, โ€œPublishโ€ the post.

add data to WordPress tables from posts without plugin

The added field is published. You can add more fields, edit or move the existing. Check the Custom Fields dashboard and see โ€œACF Demoโ€ has appeared.

Go to โ€œAll Postsโ€ and select the post you want to show custom fields using ACF.

add data to WordPress tables from posts using ACF

Now, go to the post-table created with Ninja Tables and open โ€œAdd New Columnโ€.

You will see the menu expanding to โ€œDynamic Post Data Settingsโ€. Fill in the โ€œField Typeโ€ from the dropdown and the โ€œField Valueโ€ box.

simple ways to add data to WordPress tables from posts

The field value should be just as you input before. Once you click โ€œAdd Columnโ€, the new ACF Demo column will be created for its corresponding post.

add data to WordPress tables from posts in simple ways

Check out the documentation to know more.

3. Shortcode, computed value or HTML

We can start with the โ€œAdd New Columnโ€ panel from the previously created table. Name the column and choose โ€œShortcode / Computed Value or HTMLโ€ on Field Type.

For dynamic shortcode, use this –

[yourshortcode YourParam=”{post.ID}”]

how can I add data to WordPress tables from posts

Add the shortcode and click on โ€œAdd Columnโ€. For example, the shortcode made for a WooCommerce table in Ninja Tables on a โ€œBuy Nowโ€ column is [add_to_cart id=”{post.ID}”]

add data to WordPress tables from posts for beginners

Each row will take the respective WP post ID and create the add-to-cart button according to a valid shortcode. Go through the documentation for more clarity.

4. Post Meta Field

Itโ€™s also known as โ€œCustom Fieldsโ€, and you can show an additional content of your WP post through Ninja Tables. You can either show a new post or edit an existing one.

For this demo, we are updating a previously made post with Custom Field and displaying it on Ninja Tables Post Meta Field. This feature is done from the admin panel.

First of all, navigate to the postโ€™s โ€œScreen Optionโ€ on the top. You will see some checkboxes appear, and one of them will be โ€œCustom Fieldsโ€.

add data to WordPress tables from posts with Ninja Tables

Now, if you check the box, the Post Meta will expand to another panel with field name and value.

Hereโ€™s Advanced Custom Field as value.

add data to WordPress tables from posts easily

We want to add one of the fields in a table. So, we selected a pre-made table and went to the โ€œAdd New Columnโ€ panel.

Simply put the value in the field value here on Dynamic Post Data Settings as well and click on โ€œAdd Columnโ€.

best ways to add data to WordPress tables from posts

The outcome will appear on the table automatically.

using Ninja Tables to add data to WordPress tables from posts

Itโ€™s the easiest part where all you have to do is add a featured image on a post and edit the โ€œAdd New Columnโ€ panel.

Firstly, open a post to upload a featured image, as shown in the image below.

how to use Ninja Tables to add data to WordPress tables from posts

You can replace or remove the image from the postโ€™s sidebar. Since we already have a table ready, we picked and added images to some posts on that table. The posts with images will show up on the table after you create a new column.

create tables and add data to WordPress tables from posts

For the Field Value, you can determine the size or form of the image. For example, thumbnail, medium, large, etc. The checkbox for โ€œLink to post permalinkโ€ will take you to the post if you click on the image and will โ€œOpen link to new tabโ€ if you check the other one.

Right after you โ€œAdd Columnโ€, the โ€œFeatured Imageโ€ column will be created and show corresponding images of posts.

how to add data to WordPress tables from posts

Remarks

Thatโ€™s all for WP Post and Ninja Tables now. We have shown you how to add data to WordPress tables from posts. You can try it with Ninja Tables as per our demonstration because itโ€™s more flexible and feature-rich. Although, to each their own!

Integration with WP Post is an awesome feature of the table plugin and helps a lot by pulling data from posts. A user can add custom columns, advanced custom fields, shortcode, post meta field, and featured images from the WP Post through an intuitive interface.

Take a look at our full documentation for a detailed recap.

On a final note, we will soon offer you an explanation of adding form entries in WordPress tables. Stay with us!


Nusrat Fariha
Nusrat Fariha Hi! I’m a creative content writer at WPManageNinja & Product Marketing Lead at Ninja Tables. I love to work on diverse topics. When I’m not writing, you’ll find me going through my favorite books or drawing something!

Related Posts

  • Ninja_Tables_for_Modern_eCommerce_FluentCart_Table_and_More!

    Ninja Tables for Modern eCommerce: FluentCart Product Table (and More!)

    December 4, 2025
  • FluentCart Review

    FluentCart: The 3X Faster, Performance-focused eCommerce Plugin for WordPress

    October 14, 2025
  • FluentAffiliate, WordPress affiliate plugin

    Introducing FluentAffiliate – The Only Affiliate Management Tool Youโ€™ll Ever Need

    September 3, 2025
Comments

Leave a Reply