This feature, known as Post Meta Field (also called Custom Fields), helps associate additional content to a post.

With Ninja Tables, you can show this content with your table data. This content is usually not directly linked to the main content itself. Depending on the type of site, the content you’re dealing with could vary a lot.

A new post can be added, or a current post can be edited. Here, an existing post is edited to build custom post meta fields in WordPress table using the Ninja Tables plugin Post Meta Field option.

Display Post Meta Field in WordPress Table #

  • Firstly, navigate to your WordPress admin panel’s Post Editor tab. Tap the Screen Options in the panel.
screen options
Screen Options
  • And then, you will notice an expanded panel appearing. Here the Custom Fields checkbox will be visible.
Custom Fields checkbox
Custom Fields checkbox
  • A Custom Fields option will appear at the bottom of the post after checking the Custom Fields option.
edit Custom Fields
Custom Fields
  • The Post Meta follows a scheme called pairs of keys/values. In the above screenshot, you can see that 3 custom fields are generated with their value.

  • To show one of the fields in my table, go to the dashboard for Ninja Tables and add a new table, or select any of the tables that were made.
  • Then click on the Add New Column tab.
  • You can find the Dynamic Post Data Settings section after filling in the basic information. From there, click on the option Field Type. A drop-down option will appear. From there, click on the Post Meta option.
dynamic post data settings
Dynamic Post Data Settings
  • You will then see an input field appear to include the field value to be shown on the table.
field value in dynamic post data settings

  • Create a Custom Field and Place the value in the Custom Fields section of your post section. Copy the Custom Field Value for further Use.
acf demo in custom field
  • If Ninja-Post is added as a Field Value from the post page custom fields section, then a custom field column post meta will be added to the table. Ninja-Post is placed in the Dynamic Post Data Settings section as Field Value.
field value in new column

  • The final outcome of the table can be seen by clicking on the preview button.
column content using post meta field
Preview

Now, you can see that a post meta has been added to your table as a Custom Fields type. This is how you can display Post Meta Field of Ninja Tables.

Leave a Reply

Your email address will not be published. Required fields are marked *