{"name":"product_filter","label":"Product Filter","query":"<?php\n\n$excludeCategories = array();\n\n// Add Discontinued and Training term into excluded categories\n$discontinuedTerm = get_term_by( 'slug', 'discontinued', 'product-category' );\n$trainingTerm = get_term_by( 'slug', 'training', 'product-category' );\n\nreturn array(\n\t'post_type' => 'products',\n\t'post_status' => 'publish',\n\t'posts_per_page' => '15',\n\t'order' => 'ASC',\n\t'orderby' => 'title',\n\t'tax_query' => array(\n\t\tarray(\n\t\t\t'taxonomy' => 'product-category',\n\t\t\t'field'\t   => 'term_id',\n\t\t\t'terms'    => [$discontinuedTerm->term_id, $trainingTerm->term_id],\n\t\t\t'operator' => 'NOT IN',\n\t\t),\n\t),\n);","template":"<?php while ( have_posts() ) : the_post(); ?>\n<article class='tax-item elementor-text-editor'>\n    <div class='one_sixth'>\n        <?php if (get_field('product_id') && get_field('product_images')) {\n            $images = get_field('product_images');\n            $image = array_shift($images);\n            if (!empty($image)) { ?>\n                <img src='https://commonframework.us/app/uploads/products/<?php echo $image['image']; ?>' alt='<?php echo get_the_title() . ' ' . $image['group']; ?>' title='<?php echo get_the_title() . ' ' . $image['group']; ?>' />\n            <?php }\n        } ?>\n    </div>\n    <div class='five_sixth last'>\n        <h2><a href='<?php the_permalink(); ?>'><?php the_title(); ?></a></h2>\n        <?php the_content(); ?>\n    </div>\n</article>\n<?php endwhile;  ?>\n\n","layout":{"items":[{"type":"row","items":[{"type":"col","items":[],"settings":{"border":{"style":"none","color":"","width":{"unit":"px","top":0,"right":0,"bottom":0,"left":0}},"background_color":"","padding":{"unit":"px","top":0,"right":0,"bottom":0,"left":0},"text_color":"","text_style":{"align":"","bold":false,"italic":false},"font_size":{"unit":"px","size":0},"name":"el-dymprn","css_class":""}}],"settings":{"grid_template_columns":"1fr","border":{"style":"none","color":"","width":{"unit":"px","top":0,"right":0,"bottom":0,"left":0}},"background_color":"","padding":{"unit":"px","top":0,"right":0,"bottom":0,"left":0},"text_color":"","text_style":{"align":"","bold":false,"italic":false},"font_size":{"unit":"px","size":0},"name":"el-knm2lq","css_class":""}}],"settings":{"num_columns":1,"grid_gap":10,"border":{"style":"none","color":"","width":{"unit":"px","top":0,"right":0,"bottom":0,"left":0}},"background_color":"","padding":{"unit":"px","top":0,"right":0,"bottom":0,"left":0},"text_color":"","text_style":{"align":"","bold":false,"italic":false},"font_size":{"unit":"px","size":0},"name":"el-6lik5r","css_class":"","custom_css":""}},"query_obj":{"post_type":[],"posts_per_page":10,"orderby":[],"filters":[]},"modes":{"display":"advanced","query":"advanced"}}
