{"id":2703,"date":"2017-07-18T09:21:01","date_gmt":"2017-07-18T07:21:01","guid":{"rendered":"https:\/\/www.nieuwsmarkt.nl\/?p=2703"},"modified":"2017-10-01T09:09:53","modified_gmt":"2017-10-01T07:09:53","slug":"wordpress-finally-becomes-a-real-relational-database-publishing-platform","status":"publish","type":"post","link":"https:\/\/www.nieuwsmarkt.nl\/nl\/blog\/2017\/07\/18\/wordpress-finally-becomes-a-real-relational-database-publishing-platform\/","title":{"rendered":"WordPress finally becomes a real relational database publishing platform"},"content":{"rendered":"<p><strong>Custom Post Types and Custom Fields finally come alive in true relational database publishing without the need to do PHP programming. In the various Beaver Builder Facebook groups there is a lot of excitement around this development. Why did it take so long for WordPress to break through in this area?<\/strong><!--more--><\/p>\n<p>Custom Post Types and Custom Fields were &#8216;just there&#8217; for developers to fit the two in the WordPress datastructure. WooCommerce, Events Manager and many other plugins are based on both custom post types and custom fields. And for the WordPress development team that was enough, they never thought of the end-user without PHP skills, to be able to use custom post types and custom fields in &#8216;just&#8217; simple but effective relational database publishing.<\/p>\n<blockquote><p>The WordPress development team did not think that CPT\/CF&#8217;s could add great value to non-PHP webdesigners<\/p><\/blockquote>\n<p><a href=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/pods-themer.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2718\" src=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/pods-themer.jpg\" alt=\"\" width=\"930\" height=\"297\" srcset=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/pods-themer.jpg 930w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/pods-themer-300x96.jpg 300w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/pods-themer-768x245.jpg 768w\" sizes=\"auto, (max-width: 930px) 100vw, 930px\" \/><\/a><\/p>\n<h3>Pods and Beaver Themer<\/h3>\n<p>The playing field changed by the strong support of Pods within Themer by the <a href=\"https:\/\/wordpress.org\/plugins\/pods-beaver-builder-themer-add-on\/\" target=\"_blank\" rel=\"noopener\">Pods Beaver Themer Add-on<\/a>. Although Pods itself has a relatively low market share compared to <a href=\"https:\/\/www.advancedcustomfields.com\/\" target=\"_blank\" rel=\"noopener\">Advanced Custom Fields (pro)<\/a>, their database approach for making relations is just easier to understand and even easier to implement with the Themer &#8216;connector&#8217;. And also Toolset Types is a popular plug-in for creating custom post types and custom fields. Themer already has some kind of built-in-support for the three popular CPT\/CF tools in the markt and can work (<a href=\"http:\/\/kb.wpbeaverbuilder.com\/article\/460-connect-custom-fields-toolset-pods-themer\" target=\"_blank\" rel=\"noopener\">in some way<\/a>) with ACF, Pods and Toolset Types. For many flat database solutions without the need for more complicated relational &#8216;stuff&#8217;, this works fine.<\/p>\n<div id=\"attachment_1905\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/05\/cpt-cf-overview.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1905\" class=\"wp-image-1905 size-large\" src=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/05\/cpt-cf-overview-1024x702.jpg\" alt=\"\" width=\"1024\" height=\"702\" srcset=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/05\/cpt-cf-overview-1024x702.jpg 1024w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/05\/cpt-cf-overview-300x206.jpg 300w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/05\/cpt-cf-overview-768x527.jpg 768w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/05\/cpt-cf-overview.jpg 1636w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-1905\" class=\"wp-caption-text\">CPT\/CF playing field<\/p><\/div>\n<p>We are curious on how Themer wil develop in the near future. Themer also offers support for WooCommerce, so the shop archive page and the single product pages can be created in any style you like. It is a valid question whether Themer should offer dedicated support for a number of populair plugins. How far could that grow? Or should a kind of universal &#8216;connector&#8217; be able to do the job for most CPT\/CF based plugins?<\/p>\n<blockquote><p>What route should Themer go? Support for various dedicated plug-ins or a universal &#8216;fields connector&#8217; to connect to all?<\/p><\/blockquote>\n<h3>Gutenberg<\/h3>\n<p><a href=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/gutenberg.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2711\" src=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/gutenberg.jpg\" alt=\"\" width=\"934\" height=\"300\" srcset=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/gutenberg.jpg 934w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/gutenberg-300x96.jpg 300w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/gutenberg-768x247.jpg 768w\" sizes=\"auto, (max-width: 934px) 100vw, 934px\" \/><\/a><\/p>\n<p>With the new text editing tool <a href=\"https:\/\/wordpress.org\/plugins\/gutenberg\/\" target=\"_blank\" rel=\"noopener\">Gutenberg<\/a>, WordPress is moving to a more &#8216;block oriented content&#8217; approach. It seems that the developments of pagebuilders influence the way of thinking in the core of the development group at Automattic. Gutenberg won&#8217;t be there to play a role in the front-end like pagebuilders do, but new power could be added to the way WordPress handles content in the back-end.<\/p>\n<blockquote><p>Relational database publishing <a href=\"https:\/\/www.drupal.org\/node\/314441\" target=\"_blank\" rel=\"noopener\">discussions<\/a> started long time ago in Drupal<\/p><\/blockquote>\n<p>The block orientation would be great for database publishing. If Gutenberg blocks could connect to CPT&#8217;s and their connected fields, it would be a great step in developing WordPress into new directions they have never been before.<\/p>\n<p>Another step would be the &#8216;save as template&#8230;.&#8217; feature while editing a page in Gutenberg. Making templates in WordPress has always been a job for PHP specialists. We don&#8217;t know if the Gutenberg team will be able to influence this part of the development cycle within WordPress, but we think it would have great impact.<\/p>\n<h3>Calculation fields<\/h3>\n<p>With a history in using FileMaker Pro back in the early 90&#8217;s, for us it is very strange to experience that non of the custom fields tools offer so-called calculation fields in their library of field types. How normal would it be to make a calculation using existing fields to calculate something and insert the result in another field. We have some sites with the Advanced Custom Fields plugin, but if we want to calculate something, we have to make small PHP routines to do so. In our minds that is a strange approach. We asked the developers of ACF, <a href=\"https:\/\/wp-types.com\/forums\/topic\/types-beaver-themer-integration\/\" target=\"_blank\" rel=\"noopener\">Toolset<\/a> and Pods to look into the possibilities to add such a possibility. Only the Pods team reacted possitive. The screenshot below shows the FileMaker Pro user interface for making calculations between fields.<\/p>\n<div id=\"attachment_2727\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/example-filemaker-calc.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2727\" class=\"wp-image-2727 size-large\" src=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/example-filemaker-calc-1024x780.png\" alt=\"\" width=\"1024\" height=\"780\" srcset=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/example-filemaker-calc-1024x780.png 1024w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/example-filemaker-calc-300x229.png 300w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/example-filemaker-calc-768x585.png 768w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/example-filemaker-calc.png 1236w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-2727\" class=\"wp-caption-text\">Example of FileMaker calculation fields<\/p><\/div>\n<p>The example below show just a simple calculation to calculate the position of a glas window (portrait or landscape) based on a give height and width (from existing ACF fields). The result will be written and saved in the field &#8216;positie&#8217;. Although it can be done that way, it limits the flexibility of using calcultions for a much broader group of website developers.<\/p>\n<p><a href=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/calc-php.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2736\" src=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/calc-php.jpg\" alt=\"\" width=\"645\" height=\"283\" srcset=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/calc-php.jpg 645w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/calc-php-300x132.jpg 300w\" sizes=\"auto, (max-width: 645px) 100vw, 645px\" \/><\/a><\/p>\n<h3>Themer fieldsfilter<\/h3>\n<p>Last but not least, it would be a great idea to extend Beaver Themer with a field filter, as shown below. I did send a feature request about this, and the reactions were positive.<\/p>\n<p><a href=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/fieldsfilter.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2758\" src=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/fieldsfilter.jpg\" alt=\"\" width=\"1024\" height=\"550\" srcset=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/fieldsfilter.jpg 1024w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/fieldsfilter-300x161.jpg 300w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2017\/07\/fieldsfilter-768x413.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Custom Post Types and Custom Fields finally come alive in true relational database publishing without the need to do PHP programming. In the various Beaver Builder Facebook groups there is a lot of excitement around this development. Why did it take so long for WordPress to break through in this area?<\/p>","protected":false},"author":2,"featured_media":2711,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2703","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review"],"_links":{"self":[{"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/posts\/2703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/comments?post=2703"}],"version-history":[{"count":4,"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/posts\/2703\/revisions"}],"predecessor-version":[{"id":2782,"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/posts\/2703\/revisions\/2782"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/media\/2711"}],"wp:attachment":[{"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/media?parent=2703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/categories?post=2703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/tags?post=2703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}