{"id":716,"date":"2015-06-24T22:47:48","date_gmt":"2015-06-24T17:47:48","guid":{"rendered":"https:\/\/ahmadawais.com\/?p=716"},"modified":"2015-06-26T22:57:07","modified_gmt":"2015-06-26T17:57:07","slug":"repeatable-metabox-fields-to-create-pricing-tables-in-wordpress","status":"publish","type":"post","link":"https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/","title":{"rendered":"Repeatable Metabox fields to create Pricing Tables in WordPress"},"content":{"rendered":"<p>Being a <a href=\"https:\/\/ahmadawais.com\/about\/\" target=\"_blank\">full stack WordPress\u00a0developer<\/a>, I think user experience matters a lot. While creating a premium WordPress theme, one should take care of how users are going to use it. WordPress premium themes are known for worst UX(user experience) while having good UIs (user interfaces). I keep exploring new ways of creating better user experience since curiosity about life in all of its aspects, I think, is still the secret of creative people.<\/p>\n<blockquote><p>For a theme developer user experience is not a feature it is an attitude.<\/p><\/blockquote>\n<h2 id=\"developing-a-pricing-table\">Developing a Pricing Table<a href=\"#developing-a-pricing-table\" class=\"heading-link\">#<\/a><\/h2>\n<p>Last week while I was developing a new WordPress premium theme. I thought it would be nice to provide users with a better way of creating pricing tables in WordPress, since I was using shortcodes for this very task and I guess we all know how bad it could be to build a pricing table with shortcodes.<\/p>\n<h3 id=\"quest-begins\">Quest begins<a href=\"#quest-begins\" class=\"heading-link\">#<\/a><\/h3>\n<p>Everything starts with a wild guess and it takes a while to get confident that you are guessing pretty good.\u00a0Let&#8217;s plan what we are going to build here.<\/p>\n<ol>\n<li>A custom post type for Pricing Tables called <code>aa_tables<\/code><\/li>\n<li>Metabox with repeatable fields i.e. property value pairs for entities of a pricing table<\/li>\n<li>Getting the values of\u00a0repeatable property value pairs and using these values at the front-end<\/li>\n<\/ol>\n<h2 id=\"1-custom-post-type-aa_tables\">#1: Custom Post Type <code>aa_tables<\/code><a href=\"#1-custom-post-type-aa_tables\" class=\"heading-link\">#<\/a><\/h2>\n<div class=\"annotation\">I\u00a0wrote the following code to create a custom post type called <code>aa_tables<\/code> where <code>aa_Tables_messages()<\/code> is a function to customize notification messages for this CPT.<\/p>\n<div class=\"main\">\n<h5 id=\"update-1\">Update #1<a href=\"#update-1\" class=\"heading-link\">#<\/a><\/h5>\n<p>As my friend Matt Cromwell mentioned in the comments, make sure you realize that code for CPT belongs in a Core Functionality plugin which is exactly what I am doing behind the scene. So, make sure you try to differentiate between what goes in your theme and what goes in a core plugin for your theme.<\/p><\/div>\n<\/div>\n<p>I used <a href=\"http:\/\/GenerateWP.com\" target=\"_blank\">GenerateWP.com<\/a>\u00a0to create this CPT, you should try it out.<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ahmadawais\/f0952619881298ce3fa5.js\"><\/script><\/p>\n<h2 id=\"2-metabox-with-repeatable-fields\">#2:\u00a0Metabox with repeatable fields<a href=\"#2-metabox-with-repeatable-fields\" class=\"heading-link\">#<\/a><\/h2>\n<p>Creating a set of repeatable fields with key value pairs is most definitely a tough task.\u00a0A good\u00a0number of developers recommend to write your own code instead of relying on a framework. But instead of shooting arrows at somebody else\u2019s target\u2026 I make my own target around wherever my arrow has happened to have landed. We are going to create repeatable metaboxes\/field so after bit of a research I found few viable options<\/p>\n<ul>\n<li><strong>Free:<\/strong> VafPress (<a href=\"https:\/\/github.com\/vafour\/vafpress-framework\" target=\"_blank\">https:\/\/github.com\/vafour\/vafpress-framework<\/a>)<\/li>\n<li><strong>Free:<\/strong> CMB2 from WebDevStudios (https:\/\/github.com\/WebDevStudios\/CMB2)<\/li>\n<li><strong>Free\/Paid:<\/strong> Metabox.io (<a href=\"https:\/\/metabox.io\/\" target=\"_blank\">https:\/\/metabox.io\/<\/a>)<\/li>\n<\/ul>\n<p>While CMB2 looks like a worthy option, I had have some experience with VafPress which was why I chose it. I really liked Metabox.io and plan to use it in a future product or two.<\/p>\n<h4 id=\"including-vafpress-in-a-wordpress-theme\">Including\u00a0VafPress in a WordPress\u00a0theme<a href=\"#including-vafpress-in-a-wordpress-theme\" class=\"heading-link\">#<\/a><\/h4>\n<p>I have created a file called <code>admin-init.php<\/code> and required it in <code>functions.php<\/code>, you can choose to add the following code directly in <code>functions.php<\/code> if you&#8217;d like.<script src=\"https:\/\/gist.github.com\/ahmadawais\/eddd635637d3cc31c72a.js\"><\/script><\/p>\n<h4 id=\"including-metabox-for-our-cpt\">Including Metabox for our CPT<a href=\"#including-metabox-for-our-cpt\" class=\"heading-link\">#<\/a><\/h4>\n<p>I have created another file called <code>metabox-init.php<\/code> and\u00a0inside it I have required a file called\u00a0<code>aa_tables_mb.php<\/code>. This file will contain our metabox code.<br \/>\n<script src=\"https:\/\/gist.github.com\/ahmadawais\/b94fdde911a7a6a2d0f7.js\"><\/script><\/p>\n<h4 id=\"creating-a-metabox-with-repeatable-fields\">Creating a metabox with repeatable fields<a href=\"#creating-a-metabox-with-repeatable-fields\" class=\"heading-link\">#<\/a><\/h4>\n<p>Inside <code>aa_tables_mb.php<\/code>\u00a0I have coded a single metabox which is responsible for following fields<\/p>\n<ul>\n<li>Price of the table<\/li>\n<li>Text below price<\/li>\n<li>Repeatable property-value pairs (E.g. Property = Support and Value = 1 Year)<\/li>\n<li>Link for the buy button<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ahmadawais\/6eb973bf62f42e392fd8.js\"><\/script><\/p>\n<h2 id=\"3-getting-the-repeatable-values\">#3 Getting the repeatable values<a href=\"#3-getting-the-repeatable-values\" class=\"heading-link\">#<\/a><\/h2>\n<p>Finally we need to get the values of repeatable property value pairs and print them on the front-end<br \/>\n<script src=\"https:\/\/gist.github.com\/ahmadawais\/2bf0d60326e8a2a09dad.js\"><\/script><\/p>\n<h2 id=\"final-outcome\">Final Outcome<a href=\"#final-outcome\" class=\"heading-link\">#<\/a><\/h2>\n<p>Here are few screenshots to demonstrate how things finally turned out<\/p>\n<h3 id=\"back-end\">Back-end<a href=\"#back-end\" class=\"heading-link\">#<\/a><\/h3>\n<\/section>\n<div class=\"postcontents full\">\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-723\" src=\"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.30.27-pm.png\" alt=\"Screen Shot 2015-06-24 at 10.30.27 pm\" width=\"3104\" height=\"2024\" srcset=\"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.30.27-pm.png 3104w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.30.27-pm-300x196.png 300w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.30.27-pm-1024x668.png 1024w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.30.27-pm-1680x1095.png 1680w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.30.27-pm-860x561.png 860w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.30.27-pm-680x443.png 680w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.30.27-pm-400x261.png 400w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.30.27-pm-50x33.png 50w\" sizes=\"auto, (max-width: 3104px) 100vw, 3104px\" \/>\n<\/div>\n<section class=\"postcontents wrapper\">\n<h3 id=\"front-end\">Front-end<a href=\"#front-end\" class=\"heading-link\">#<\/a><\/h3>\n<\/section>\n<div class=\"postcontents full\">\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-724\" src=\"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.31.08-pm.png\" alt=\"Screen Shot 2015-06-24 at 10.31.08 pm\" width=\"3104\" height=\"2024\" srcset=\"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.31.08-pm.png 3104w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.31.08-pm-300x196.png 300w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.31.08-pm-1024x668.png 1024w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.31.08-pm-1680x1095.png 1680w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.31.08-pm-860x561.png 860w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.31.08-pm-680x443.png 680w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.31.08-pm-400x261.png 400w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/Screen-Shot-2015-06-24-at-10.31.08-pm-50x33.png 50w\" sizes=\"auto, (max-width: 3104px) 100vw, 3104px\" \/>\n<\/div>\n<section class=\"postcontents wrapper\">\n<p>&nbsp;<\/p>\n<p>That&#8217;s about it. I know I haven&#8217;t been forth-coming with a lot of details, but for any decent developer, these gists have documented code. I am open to questions. Let me know.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how you can create a better user experience for end users in relation to creating Pricing Tables with repeatable metabox fields inside your premium WordPress Theme. <\/p>\n","protected":false},"author":2,"featured_media":726,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[89,88],"class_list":["post-716","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-metabox","tag-repeatable-fields"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Repeatable Metabox fields to create Pricing Tables in WordPress<\/title>\n<meta name=\"description\" content=\"Learn how you can create a better user experience for end users in relation to creating Pricing Tables with repeatable metabox fields inside your premium WordPress Theme.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Repeatable Metabox fields to create Pricing Tables in WordPress\" \/>\n<meta property=\"og:description\" content=\"Learn how you can create a better user experience for end users in relation to creating Pricing Tables with repeatable metabox fields inside your premium WordPress Theme.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Ahmad Awais\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/AhmadAwais\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/AhmadAwais\" \/>\n<meta property=\"article:published_time\" content=\"2015-06-24T17:47:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-06-26T17:57:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/CPT_aa_tables.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"700\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ahmad Awais\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MrAhmadAwais\" \/>\n<meta name=\"twitter:site\" content=\"@MrAhmadAwais\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ahmad Awais\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\\\/\"},\"author\":{\"name\":\"Ahmad Awais\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\"},\"headline\":\"Repeatable Metabox fields to create Pricing Tables in WordPress\",\"datePublished\":\"2015-06-24T17:47:48+00:00\",\"dateModified\":\"2015-06-26T17:57:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\\\/\"},\"wordCount\":653,\"commentCount\":19,\"publisher\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\"},\"image\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2015\\\/06\\\/CPT_aa_tables.jpg\",\"keywords\":[\"metabox\",\"repeatable fields\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ahmadawais.com\\\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\\\/\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\\\/\",\"name\":\"Repeatable Metabox fields to create Pricing Tables in WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2015\\\/06\\\/CPT_aa_tables.jpg\",\"datePublished\":\"2015-06-24T17:47:48+00:00\",\"dateModified\":\"2015-06-26T17:57:07+00:00\",\"description\":\"Learn how you can create a better user experience for end users in relation to creating Pricing Tables with repeatable metabox fields inside your premium WordPress Theme.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ahmadawais.com\\\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2015\\\/06\\\/CPT_aa_tables.jpg\",\"contentUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2015\\\/06\\\/CPT_aa_tables.jpg\",\"width\":1000,\"height\":700},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ahmadawais.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Repeatable Metabox fields to create Pricing Tables in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#website\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/\",\"name\":\"Ahmad Awais\",\"description\":\"Founder &amp; CEO of CommandCode.ai f\\\/k\\\/a Langbase | Google Developers Advisory Board (gDAB) founding member\",\"publisher\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ahmadawais.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\",\"name\":\"Ahmad Awais\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\",\"contentUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\",\"width\":2299,\"height\":1705,\"caption\":\"Ahmad Awais\"},\"logo\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\"},\"description\":\"Founder & CEO of \u2318 Command Code coding agent with taste. Founded Langbase.com, AI cloud to build, deploy, and scale AI agents with tools & memory \u00b7 Creator of Command.new. \\\"Awais is an awesome example for developers\\\" \u2014 Satya Nadella, CEO of Microsoft. NASA Mars Ingenuity Helicopter mission code contributor 8th GitHub Stars Award recipient with 5x GitHub Stars Award (Listed as GitHub's #1 JavaScript trending developer). Google Developers Expert Web DevRel. Ex VP Eng (DevTools & DevRel) Rapid \u00b7 Google Developers Advisory Board (gDAB) founding member \u00b7 AI\\\/ML\\\/DevTools Angel Investor (Replit, Resend, Daytona, Gumroad and you?) \u276f AI\\\/ML Advisory Board San Francisco, DevNetwork. Award-winning Open Source Engineering leader authored hundreds of open-source dev-tools and software libraries used by millions of developers, including Shades of Purple code theme and corona-cli. Linux Foundation (Node.js Committee Lead), OpenAPI Business Governing Board. Taught 108K+ developers via NodeCLI.com and VSCode.pro course. 274 million views, blogging for 24 yrs. \u276f Read more about Ahmad Awais or come say hi on \ud835\udd4f @MrAhmadAwais.\",\"sameAs\":[\"https:\\\/\\\/AhmadAwais.com\\\/\",\"https:\\\/\\\/facebook.com\\\/AhmadAwais\",\"https:\\\/\\\/instagram.com\\\/MrAhmadAwais\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/MrAhmadAwais\\\/\",\"https:\\\/\\\/x.com\\\/MrAhmadAwais\",\"https:\\\/\\\/youtube.com\\\/AhmadAwais\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Repeatable Metabox fields to create Pricing Tables in WordPress","description":"Learn how you can create a better user experience for end users in relation to creating Pricing Tables with repeatable metabox fields inside your premium WordPress Theme.","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:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"Repeatable Metabox fields to create Pricing Tables in WordPress","og_description":"Learn how you can create a better user experience for end users in relation to creating Pricing Tables with repeatable metabox fields inside your premium WordPress Theme.","og_url":"https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/","og_site_name":"Ahmad Awais","article_publisher":"https:\/\/facebook.com\/AhmadAwais","article_author":"https:\/\/facebook.com\/AhmadAwais","article_published_time":"2015-06-24T17:47:48+00:00","article_modified_time":"2015-06-26T17:57:07+00:00","og_image":[{"width":1000,"height":700,"url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/CPT_aa_tables.jpg","type":"image\/jpeg"}],"author":"Ahmad Awais","twitter_card":"summary_large_image","twitter_creator":"@MrAhmadAwais","twitter_site":"@MrAhmadAwais","twitter_misc":{"Written by":"Ahmad Awais","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/#article","isPartOf":{"@id":"https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/"},"author":{"name":"Ahmad Awais","@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"headline":"Repeatable Metabox fields to create Pricing Tables in WordPress","datePublished":"2015-06-24T17:47:48+00:00","dateModified":"2015-06-26T17:57:07+00:00","mainEntityOfPage":{"@id":"https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/"},"wordCount":653,"commentCount":19,"publisher":{"@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"image":{"@id":"https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/CPT_aa_tables.jpg","keywords":["metabox","repeatable fields"],"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/","url":"https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/","name":"Repeatable Metabox fields to create Pricing Tables in WordPress","isPartOf":{"@id":"https:\/\/ahmadawais.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/CPT_aa_tables.jpg","datePublished":"2015-06-24T17:47:48+00:00","dateModified":"2015-06-26T17:57:07+00:00","description":"Learn how you can create a better user experience for end users in relation to creating Pricing Tables with repeatable metabox fields inside your premium WordPress Theme.","breadcrumb":{"@id":"https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/#primaryimage","url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/CPT_aa_tables.jpg","contentUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/CPT_aa_tables.jpg","width":1000,"height":700},{"@type":"BreadcrumbList","@id":"https:\/\/ahmadawais.com\/repeatable-metabox-fields-to-create-pricing-tables-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ahmadawais.com\/"},{"@type":"ListItem","position":2,"name":"Repeatable Metabox fields to create Pricing Tables in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/ahmadawais.com\/#website","url":"https:\/\/ahmadawais.com\/","name":"Ahmad Awais","description":"Founder &amp; CEO of CommandCode.ai f\/k\/a Langbase | Google Developers Advisory Board (gDAB) founding member","publisher":{"@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ahmadawais.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b","name":"Ahmad Awais","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","contentUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","width":2299,"height":1705,"caption":"Ahmad Awais"},"logo":{"@id":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg"},"description":"Founder & CEO of \u2318 Command Code coding agent with taste. Founded Langbase.com, AI cloud to build, deploy, and scale AI agents with tools & memory \u00b7 Creator of Command.new. \"Awais is an awesome example for developers\" \u2014 Satya Nadella, CEO of Microsoft. NASA Mars Ingenuity Helicopter mission code contributor 8th GitHub Stars Award recipient with 5x GitHub Stars Award (Listed as GitHub's #1 JavaScript trending developer). Google Developers Expert Web DevRel. Ex VP Eng (DevTools & DevRel) Rapid \u00b7 Google Developers Advisory Board (gDAB) founding member \u00b7 AI\/ML\/DevTools Angel Investor (Replit, Resend, Daytona, Gumroad and you?) \u276f AI\/ML Advisory Board San Francisco, DevNetwork. Award-winning Open Source Engineering leader authored hundreds of open-source dev-tools and software libraries used by millions of developers, including Shades of Purple code theme and corona-cli. Linux Foundation (Node.js Committee Lead), OpenAPI Business Governing Board. Taught 108K+ developers via NodeCLI.com and VSCode.pro course. 274 million views, blogging for 24 yrs. \u276f Read more about Ahmad Awais or come say hi on \ud835\udd4f @MrAhmadAwais.","sameAs":["https:\/\/AhmadAwais.com\/","https:\/\/facebook.com\/AhmadAwais","https:\/\/instagram.com\/MrAhmadAwais\/","https:\/\/www.linkedin.com\/in\/MrAhmadAwais\/","https:\/\/x.com\/MrAhmadAwais","https:\/\/youtube.com\/AhmadAwais"]}]}},"jetpack_featured_media_url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/06\/CPT_aa_tables.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/posts\/716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/comments?post=716"}],"version-history":[{"count":0,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/posts\/716\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/media\/726"}],"wp:attachment":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/media?parent=716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/categories?post=716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/tags?post=716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}