1. Home
  2. Knowledge Base
  3. Posts Table Pro
  4. Getting Started

2. Creating tables with Posts Table Pro

Once you’ve installed the Posts Table Pro plugin, it’s time to start creating tables. There are 2 ways to do this:

Method 1: Table generator

Creating tables

When you first install the plugin, a setup wizard will open automatically. This guides you through a step-by-step process to create your first table.

You can also create new tables at any time by going to Post Tables → Add New.

Either way, the following instructions explain each stage of the process for creating a table.

Step 1 - Name your table

Create a table step with table name field and content type dropdown

Choose a name for the table you're creating. This is just for internal use and only appears on the list of tables in the WordPress admin.

You'll also need to select the post type you want to display. If you don't have a content type yet, you can easily create one using our free Easy Post Types and Fields plugin. Just click on the 'Create a new post type' link to get started.

Step 2 - Choose your posts

Select documents step with radio buttons for all or specific items and taxonomy and field checkboxes

Select which posts or pages to add to your table. The options on this page will depend on which post type you selected on the previous page. For example, if the post type has any custom taxonomies then these will be listed.

Step 3 - Customize your table columns

Table columns step with draggable columns, edit and remove icons, and an add column dropdown

Select and modify the columns you want displayed in your table:

  • To add a column, select the type of column from the dropdown and click 'Add'. It then appears in the list of columns above.
  • Re-order the table columns by dragging and dropping the sort icon on the left or the column title. The columns listed first appear towards the left of the table.
  • Click the pencil icon to change the name of the table, and then click 'Done'. Alternatively, use the toggle hide the column name completely.
  • Use the X icon to remove a column.
Advanced column options

Enable the 'Advanced' toggle to view additional options for each column. These vary depending on the column and include:

Show column heading

Enable or disable this toggle depending on whether you want to display a label in the column heading.

Column type

This allows you to choose the type of column for custom field or taxonomy columns:

  • Text - This is the default and means that the column will be sorted alphabetically.
  • Date - Use this if you are displaying dates in the table, for example within a custom field. This means that the column will be sorted by date.
  • Number - Select this if you will be displaying numbers in the column and wish to sort the column numerically instead of alphabetically.
Width

Posts Table Pro automatically sizes the columns for the best fit. You can override this behavior and control the column widths manually by entering one of the following values for each column as needed:

  • % - Enter the percentage of the table width that the column should take up. If you enter this for all columns then the total must be 100.
  • px - Enter the number of pixels wide that the column should be. If you enter this for all columns then the total must be the same or less than the total available space. Generally, we recommend using the percentage option because it gives more reliable results on different screen sizes.

More information

Responsive visibility

Select from the dropdown to control which devices the column will be visible on.

More information

Responsive priority

Setting a priority level for each column is useful when displaying the table on smaller screen sizes (mobiles, tablets, etc.) or when you have too many columns to fit. When the screen size gets too small, the plugin will collapse certain columns down so they are no longer visible, and a "+" icon will appear at the left of each row. This allows the user to expand the row to show its full contents.

Enter priorities to control the order in which columns are "collapsed" on smaller screens. The lower the number, the higher priority that column has. For example, a column with a priority of "1" would have the highest priority and be collapsed last.

More information

Step 4 - Search & Sort

Search & Sort wizard screen with filter location checkboxes and initial sorting select menus
Use the Search & Sort step to control where filters appear and how the table is sorted when it first loads. This step does not choose individual filters. The available filter options come from the content and taxonomies selected earlier in the Refine step.

  • Display filter dropdowns above the table: Show dropdown menus above the table so users can filter the results.
  • Show filters in column headers: Add filter controls to the column headers instead.
  • Sort by: Choose the initial sort order applied to the table.
  • Sort direction: Choose the direction for the initial sort, or leave it set to Automatic.

Step 5 - Ready

Ready step with green tick, table created message, shortcode, copy button, and follow up links
The final step of the wizard shows that your table has been created. It displays the shortcode you need, with a copy button beside it, so you can add the table to any page, post or widget area. From there, you can go straight to table management, start a new table, edit the settings or adjust the design.

Inserting tables

There are two easy ways to add the finished table to your site:

  • Either use the Gutenberg editor to insert a 'Post Table' block...
Insert table builder Gutenberg block Posts Table Pro
  • Alternatively, if you're not using the block editor, then copy the shortcode from the final page of the WordPress table builder. You can then paste it anywhere on your site. Use this option if you're using Classic Editor or a page builder plugin like Elementor. The shortcode for each table also appears on the main list of tables in Post Tables → Tables, so you can easily access it at any time.
Posts Table Pro Elementor
Inserting a table into a page designed using Elementor

Method 2: Build tables using a shortcode

Posts Table Pro also comes with a [posts_table] shortcode which you can use to create tables manually. This is more technical than using the table builder, but it can be a useful option if you are comfortable working with shortcodes.

Unlike the table builder method, this method generates tables directly on the page where you add the [posts_table] shortcode. The tables are not stored in a central location - you simply add the shortcode directly to the page where you want to create the table and add the options there.

The following video explains how to use the shortcode method in Posts Table Pro:

Using the basic shortcode

The basic [posts_table] shortcode will create a table listing all your posts, using whichever post type is selected on the plugin settings page. All the other options in the table - such as the columns and sort order - will be inherited from the defaults on the plugin settings page.

To add the [posts_table] shortcode to a page, simply insert it to any page, post, widget or other location on your site. For example, you can add it to a text block, code block or shortcode block in your chosen page builder.

[posts_table] shortcode added to a 'Shortcode' Gutenberg block
Add the shortcode to a block in your page builder

Creating more complex tables

There are dozens of shortcode options which you can use to create more advanced tables. For example, you might want to add shortcode options in order to control which items to include in the table; or to override some of the default options from the plugin settings page. This allows you to create as many tables as you like, each one different.

Can I create multiple tables?

Yes, you can create as many tables as you like using either method. You can either add each table to a different page, or you can add multiple tables to the same page.

How to add posts tables to your main blog page, category pages, search results & more

If you want the posts table layout to be used automatically on other parts of your site, then you can do this by editing the archive template in your theme. This is more technical and we've provided basic guidance on how to use the Posts Table Pro layout on category archives and search results pages.

How to add data into the table

Posts Table Pro is a dynamic WordPress table plugin. This means that it creates tables automatically, containing information already stored in your WordPress database. This might be pages, posts, or any custom post type such as documents, events or members. No manual data entry is needed.

If you haven't loaded the information that you plan to display with Posts Table Pro yet, then you need to do this first. You can either add the information as WordPress posts or pages in the normal way, or create a custom post type for storing the data using a free plugin such as Easy Post Types and Fields. With this plugin, you can also create custom fields and taxonomies for storing any extra data that you wish to display.

If you have too much information to add manually, please see our article Can I import data to display in Posts Table Pro?.

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.