{"id":2514,"date":"2019-04-04T09:09:39","date_gmt":"2019-04-04T09:09:39","guid":{"rendered":"https:\/\/wpvivid.com\/?p=2514"},"modified":"2019-04-04T09:09:39","modified_gmt":"2019-04-04T09:09:39","slug":"build-tables-with-custom-fields","status":"publish","type":"post","link":"https:\/\/wpvivid.com\/build-tables-with-custom-fields.html","title":{"rendered":"How to Build Tables with A Custom Field in WordPress?"},"content":{"rendered":"<p>Are you scratching your head trying to figure out how to<a href=\"https:\/\/wpvivid.com\/build-tables-with-custom-fields.html\"> build tables with custom fields in your WordPress website<\/a>?<\/p>\n<p>Before we even dive a little deeper into this, let us first address the need of custom fields altogether.<\/p>\n<p>WordPress has custom fields, which you can use to add fields to your content as you create them, if you look at your <a href=\"https:\/\/wpvivid.com\/10-best-seo-plugins-for-wordpress.html\">SEO plugin,<\/a> for instance, <a href=\"https:\/\/wpvivid.com\/add-keywords-and-meta-description.html\">keywords and metadata<\/a> are inserted into your content using these custom fields.<\/p>\n<p>These fields are powerful when it comes to<a href=\"https:\/\/wpvivid.com\/start-a-blog-with-wordpress.html\"> creating a robust content management system<\/a>.<\/p>\n<p>If you are a typical person or client who needs <a href=\"https:\/\/wpvivid.com\/best-free-blogging-platforms.html\">a place to publish their thoughts \u2013 aka a blog<\/a>, or <a href=\"https:\/\/wpvivid.com\/best-wordpress-business-themes.html\">a small business<\/a> that wants a brochure site to<a href=\"https:\/\/wpvivid.com\/best-portfolio-wordpress-themes.html\"> showcase its values and services<\/a>, then there is no need for custom fields or reading this article.<\/p>\n<p>However, think of a business that has a little more requirements and data associations of their content. A standard post or page alone will not help you do this without <a href=\"https:\/\/wpvivid.com\/insert-php-code-snippets.html\">messing around with the code<\/a>.<\/p>\n<p>As a developer, you get to control <a href=\"https:\/\/wpvivid.com\/display-recent-posts-in-wordpress.html\">how your content is displayed and position<\/a> on the front end where you can rightly capture it with the right custom fields.<\/p>\n<p>Alright, enough of that, let us build tables with custom fields on our WordPress website.<\/p>\n<blockquote>\n<h2>Step by Step: How to build tables with a custom field in WordPress?<\/h2>\n<\/blockquote>\n<p>We are going to use Advanced Custom Fields plugin in WordPress that provides a developer the means to create custom fields for their content.<\/p>\n<p>Natively however Advanced Custom Fields does not come with tables.<\/p>\n<p>If you need to add a custom field to your content <a href=\"https:\/\/wpvivid.com\/best-table-plugins.html\">where a table is required<\/a>, then you would have to extend Advanced Custom Fields with another plugin Advanced Custom Fields: Table Field WordPress<\/p>\n<p>If you arrived at this page from a Google search about building tables with custom fields, then you need to know that this plugin requires <a href=\"https:\/\/wordpress.org\/plugins\/advanced-custom-fields\/\">Advanced Custom Fields <\/a>install it first before you can continue with this guide.<\/p>\n<p><strong><b>Note:<\/b><\/strong> At the time of writing, Advanced Custom Fields <a href=\"https:\/\/wpvivid.com\/use-the-new-gutenberg-block-editor.html\">Gutenberg editor<\/a> compatibility is still in beta mode.<\/p>\n<p>This guide also assumes you are familiar with Advanced Custom Fields or are a developer.<\/p>\n<p>Go ahead and install Advanced Custom Fields: Table Field WordPress plugin.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"with-border alignnone wp-image-2515 size-full\" src=\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/04\/install-Advanced-Custom-Fields-Table-Field-Wordpress-plugin.png\" alt=\"install Advanced Custom Fields Table Field WordPress plugin\" width=\"950\" height=\"435\" \/><\/p>\n<p>Advanced Custom Fields: Table Field WordPress plugin works straight out of the box; there is no configuration or settings you need to make.<\/p>\n<p>It is added to the<a href=\"https:\/\/wpvivid.com\/display-posts-as-a-grid-layout.html\"> layout section<\/a> under field types of your custom field.<\/p>\n<p>A quick you can see the before installing and or activating the plugin we do not have a table field in the field type of Advanced Custom Fields.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"with-border alignnone wp-image-2516 size-full\" src=\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/04\/no-table-field-in-the-field-type-of-Advanced-Custom-Fields.png\" alt=\"no table field in the field type of Advanced Custom Fields\" width=\"1105\" height=\"497\" \/><\/p>\n<p>On Installation and activation, we now have the table layout under field type.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"with-border alignnone wp-image-2517 size-full\" src=\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/04\/the-table-layout-appears-under-field-type-after-installing-the-plugin.png\" alt=\"the table layout appears under field type after installing the plugin\" width=\"920\" height=\"172\" \/><\/p>\n<h4><strong>How to build tables?<\/strong><\/h4>\n<p>First, we need to create a new field group or edit an existing one to insert the table field to it. ,<\/p>\n<p>On the Menu navigate to Custom Fields, then click Add New.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"with-border alignnone wp-image-2518 size-full\" src=\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/04\/add-new-filed-group.png\" alt=\"add new filed group\" width=\"798\" height=\"95\" \/><\/p>\n<p>Provide a title to your new field group, then click Add Field to add fields to your group.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"with-border alignnone wp-image-2519 size-full\" src=\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/04\/add-fields-to-your-group.png\" alt=\"add fields to your group\" width=\"935\" height=\"241\" \/><\/p>\n<p>Supply all the relevant information related to your post or content needs.<\/p>\n<p>What we are specifically interested in is<a href=\"https:\/\/wpvivid.com\/add-pricing-table.html\"> adding the table to our post or page.<\/a><\/p>\n<p>For that, select the table from the drop-down menu under field type.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"with-border alignnone wp-image-2520 size-full\" src=\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/04\/select-the-table-as-the-field-type.png\" alt=\"select the table as the field type\" width=\"925\" height=\"544\" \/><\/p>\n<p>Remember to save after you have made any changes. The publish button is found on the top right corner.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"with-border alignnone wp-image-2521 size-full\" src=\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/04\/publish-the-table-field.png\" alt=\"publish the table field\" width=\"800\" height=\"200\" \/><\/p>\n<p>When you create or edit an existing page or post, you should see the new custom field with the table you created earlier.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"with-border alignnone wp-image-2522 size-full\" src=\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/04\/the-new-custom-field-with-the-table-exists.png\" alt=\"the new custom field with the table exists\" width=\"940\" height=\"378\" \/><\/p>\n<h4><strong>Understanding the Table layout.<\/strong><\/h4>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"with-border alignnone wp-image-2524 size-full\" src=\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/04\/understand-the-table-layout.png\" alt=\"understand the table layout\" width=\"934\" height=\"512\" \/><\/p>\n<ol>\n<li>The + Icon adds a column to the left of \u00a0or before the current column \u2013 in my case column A<\/li>\n<li>The + icon on the right, adds a column to the right of or before the column \u2013 in my case column A.<\/li>\n<li>Clicking this icon adds a row on top of the current row 1.<\/li>\n<li>Adds a row to the bottom of the clicked row 1.<\/li>\n<li>Deletes the column<\/li>\n<li>Deletes the row<\/li>\n<li>Adds data to a cell. Click the cell you want to add, remove or update data to; a tooltip will open up, make your modifications there and click anywhere on the screen.<\/li>\n<\/ol>\n<blockquote>\n<h2>Conclusion<\/h2>\n<\/blockquote>\n<p>You or your client should be able to build tables on their posts or pages.<\/p>\n<p>You can now go ahead and <a href=\"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html\">add your table to your theme files<\/a>.<\/p>\n<p>If you are using Advanced Custom Fields alongside Advanced Custom Fields: Table Field, then share with us your thoughts in the <a href=\"https:\/\/wpvivid.com\/build-custom-comment-form.html\">comment section<\/a> below.<\/p>\n<p>You may also want to<a href=\"https:\/\/wpvivid.com\/integrate-charts-graphs-into-wordpress.html\"> integrate charts and graphs into your WordPress site<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Need to build tables with custom fields in your website? Follow our step-by-step guide on how to build tables with a custom field in WordPress.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","iawp_total_views":64},"categories":[80],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Build Tables with A Custom Field in Wordpress? - WPvivid<\/title>\n<meta name=\"description\" content=\"Need to build tables with custom fields in your website? Follow our step-by-step guide on how to build tables with a custom field in WordPress.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wpvivid.com\/build-tables-with-custom-fields.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Build Tables with A Custom Field in Wordpress? - WPvivid\" \/>\n<meta property=\"og:description\" content=\"Need to build tables with custom fields in your website? Follow our step-by-step guide on how to build tables with a custom field in WordPress.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpvivid.com\/build-tables-with-custom-fields.html\" \/>\n<meta property=\"og:site_name\" content=\"WPvivid\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-04T09:09:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/04\/install-Advanced-Custom-Fields-Table-Field-Wordpress-plugin.png\" \/>\n<meta name=\"author\" content=\"TonyRobins\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TonyRobins\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpvivid.com\/build-tables-with-custom-fields.html\",\"url\":\"https:\/\/wpvivid.com\/build-tables-with-custom-fields.html\",\"name\":\"How to Build Tables with A Custom Field in Wordpress? - WPvivid\",\"isPartOf\":{\"@id\":\"https:\/\/wpvivid.com\/#website\"},\"datePublished\":\"2019-04-04T09:09:39+00:00\",\"dateModified\":\"2019-04-04T09:09:39+00:00\",\"author\":{\"@id\":\"https:\/\/wpvivid.com\/#\/schema\/person\/7cd2b626d269c38ca5456654d1a5d2e0\"},\"description\":\"Need to build tables with custom fields in your website? Follow our step-by-step guide on how to build tables with a custom field in WordPress.\",\"breadcrumb\":{\"@id\":\"https:\/\/wpvivid.com\/build-tables-with-custom-fields.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpvivid.com\/build-tables-with-custom-fields.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpvivid.com\/build-tables-with-custom-fields.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wpvivid.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Build Tables with A Custom Field in WordPress?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpvivid.com\/#website\",\"url\":\"https:\/\/wpvivid.com\/\",\"name\":\"WPvivid\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpvivid.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wpvivid.com\/#\/schema\/person\/7cd2b626d269c38ca5456654d1a5d2e0\",\"name\":\"TonyRobins\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wpvivid.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/10\/logo1-96x96.png\",\"contentUrl\":\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/10\/logo1-96x96.png\",\"caption\":\"TonyRobins\"},\"url\":\"https:\/\/wpvivid.com\/author\/tonyrobins\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Build Tables with A Custom Field in Wordpress? - WPvivid","description":"Need to build tables with custom fields in your website? Follow our step-by-step guide on how to build tables with a custom field in WordPress.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wpvivid.com\/build-tables-with-custom-fields.html","og_locale":"en_US","og_type":"article","og_title":"How to Build Tables with A Custom Field in Wordpress? - WPvivid","og_description":"Need to build tables with custom fields in your website? Follow our step-by-step guide on how to build tables with a custom field in WordPress.","og_url":"https:\/\/wpvivid.com\/build-tables-with-custom-fields.html","og_site_name":"WPvivid","article_published_time":"2019-04-04T09:09:39+00:00","og_image":[{"url":"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/04\/install-Advanced-Custom-Fields-Table-Field-Wordpress-plugin.png"}],"author":"TonyRobins","twitter_card":"summary_large_image","twitter_misc":{"Written by":"TonyRobins","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpvivid.com\/build-tables-with-custom-fields.html","url":"https:\/\/wpvivid.com\/build-tables-with-custom-fields.html","name":"How to Build Tables with A Custom Field in Wordpress? - WPvivid","isPartOf":{"@id":"https:\/\/wpvivid.com\/#website"},"datePublished":"2019-04-04T09:09:39+00:00","dateModified":"2019-04-04T09:09:39+00:00","author":{"@id":"https:\/\/wpvivid.com\/#\/schema\/person\/7cd2b626d269c38ca5456654d1a5d2e0"},"description":"Need to build tables with custom fields in your website? Follow our step-by-step guide on how to build tables with a custom field in WordPress.","breadcrumb":{"@id":"https:\/\/wpvivid.com\/build-tables-with-custom-fields.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpvivid.com\/build-tables-with-custom-fields.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpvivid.com\/build-tables-with-custom-fields.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpvivid.com\/"},{"@type":"ListItem","position":2,"name":"How to Build Tables with A Custom Field in WordPress?"}]},{"@type":"WebSite","@id":"https:\/\/wpvivid.com\/#website","url":"https:\/\/wpvivid.com\/","name":"WPvivid","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpvivid.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wpvivid.com\/#\/schema\/person\/7cd2b626d269c38ca5456654d1a5d2e0","name":"TonyRobins","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpvivid.com\/#\/schema\/person\/image\/","url":"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/10\/logo1-96x96.png","contentUrl":"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/10\/logo1-96x96.png","caption":"TonyRobins"},"url":"https:\/\/wpvivid.com\/author\/tonyrobins"}]}},"_links":{"self":[{"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/posts\/2514"}],"collection":[{"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/comments?post=2514"}],"version-history":[{"count":0,"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/posts\/2514\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/media?parent=2514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/categories?post=2514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/tags?post=2514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}