{"id":4900,"date":"2020-06-03T11:47:45","date_gmt":"2020-06-03T11:47:45","guid":{"rendered":"https:\/\/the7kennisbank.nl\/?p=4900"},"modified":"2020-06-09T12:01:49","modified_gmt":"2020-06-09T12:01:49","slug":"function-render-grid","status":"publish","type":"post","link":"https:\/\/the7kennisbank.nl\/nl\/wp-grid-builder\/functie-render-grid\/","title":{"rendered":"functie render raster"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element \" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<div>\n<div class=\"container flex items-center justify-between\">\n<pre class=\"entry-title\">wpgb_render_grid<\/pre>\n<\/div>\n<\/div>\n<div id=\"article-wrapper\" class=\"container\">\n<pre>This function allows to render a grid by passing as argument its id.<\/pre>\n<table class=\"wp-block-table arguments-table\">\n<tbody>\n<tr>\n<td>\n<pre>Argument<\/pre>\n<\/td>\n<td>\n<pre>Type<\/pre>\n<\/td>\n<td>\n<pre>Description<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<pre>$grid_id|$args<\/pre>\n<\/td>\n<td>\n<pre>integer|array<\/pre>\n<\/td>\n<td>\n<pre>Grid id | Grid arguments<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>[pastacode lang=&#8221;php&#8221; manual=&#8221;%2F%2F%20Render%20grid%20id%201.%0Awpgb_render_grid(%201%20)%3B&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;\/]<\/p>\n<pre class=\"code-syntax-block code-syntax-wrapper\">This function can also replace the main loop of the\u00a0<code>archive.php<\/code>,\u00a0<code>index.php<\/code>\u00a0or\u00a0<code>search.php<\/code>\u00a0files. In this case you need to pass as argument an array to define the grid <code>id<\/code> and\u00a0<code>is_main_query<\/code> to <code>true<\/code><\/pre>\n<div class=\"code-syntax-block code-syntax-wrapper\">\n<p>[pastacode lang=&#8221;php&#8221; manual=&#8221;wpgb_render_grid(%20%0A%09%5B%20%0A%09%09&#8217;id&#8217;%20%3D%3E%201%2C%20%2F%2F%20Grid%20id.%0A%09%09&#8217;is_main_query&#8217;%20%3D%3E%20true%2C%20%2F%2F%20To%20replace%20loop%20in%20archive%2Findex%2Fsearch.php%20templates.%0A%09%5D%0A)%3B&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;\/]<\/p>\n<\/div>\n<\/div>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>wpgb_render_grid This function allows to render a grid by passing as argument its id. Argument Type Description $grid_id|$args integer|array Grid id | Grid arguments [pastacode lang=&#8221;php&#8221; manual=&#8221;%2F%2F%20Render%20grid%20id%201.%0Awpgb_render_grid(%201%20)%3B&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;\/] This function can also replace the main loop of the\u00a0archive.php,\u00a0index.php\u00a0or\u00a0search.php\u00a0files. In this case you need to pass as argument an array to define the grid&hellip;<\/p>\n","protected":false},"author":2,"featured_media":4996,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[44,50,43],"tags":[],"class_list":["post-4900","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-documentation","category-php-functions","category-wp-grid-builder","category-44","category-50","category-43","description-off"],"acf":[],"_links":{"self":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts\/4900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/comments?post=4900"}],"version-history":[{"count":4,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts\/4900\/revisions"}],"predecessor-version":[{"id":5063,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts\/4900\/revisions\/5063"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/media\/4996"}],"wp:attachment":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/media?parent=4900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/categories?post=4900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/tags?post=4900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}